cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChanNT
Advocate I
Advocate 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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (1,300)