cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChanNT
Helper I
Helper I

Custom value for Role in 'Grant access to an item or a folder' action

I'm using the 'Grant access to an item or a folder' for SharePoint list item level permission and I want to add custom value in Role as 'Contribute' or custom permission. 
I tried adding 'Contribute' permission in custom value but flow failed. We can choose only 'Edit' or 'View' permission.

If anyone knows What is the custom value allowed to add in Role, please help me.
I appreciate your help.
Custom Value Issue.png
Thanks
1 ACCEPTED SOLUTION

Accepted Solutions
buckles
Regular Visitor

If you select "peek code" you can see the format it wants is 

role:[roleIDnumber]

 

Follow these instructions to find the role ID http://www.benprins.net/2017/01/23/sharepoint-get-the-role-id/  

View solution in original post

5 REPLIES 5
efialttes
Super User
Super User

Good question....

I tried to Enter Custom Value 'Can contribute' but it does not work. Let's hope somebody else can point us to the right direction.

In the meawhile, did you consider exploring HTTP REST calls from Flow to modify permissions? Step by step explanation here

https://collab365.community/manage-permissions-sharepoint-list-item-using-microsoft-flow-add-contrib...

https://collab365.community/sharepoint-item-permissions-using-flow-part-1/

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Hi @efialttes

 

buckles
Regular Visitor

If you select "peek code" you can see the format it wants is 

role:[roleIDnumber]

 

Follow these instructions to find the role ID http://www.benprins.net/2017/01/23/sharepoint-get-the-role-id/  

Hi @buckles ,
Thanks a lot and it works now.

This may be obvious to others, but the format is "role:roleIDnumber" without the brackets.

For example: role:1073741827 and not role:[1073741827] to grant contribute access.

 

Thanks @buckles 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,005)