Forum Discussion

Vikram_Samal's avatar
Jul 27, 2020

MS Flow throwing access denied when ried to set unique permission at item level

Help needed to figure out why MS flow is throwing the access denied when tried to set unique permission on triggered events. The challenge is the 401 error don't come when the inheritance has  broken. I am trying to set permission for SharePoint group using Rest API as below.

 

"https://tenantname.sharepoint.com/sites/SiteName/%20_api/lists/getByTitle('Flow%20Permission%20Test')/items(2)/roleassignments/addroleassignment(principalid=18,roledefid=1073741826)"

 

Any pointers will help.

 

Thanks

Vik

 

1 Reply

  • Sudharsan K's avatar
    Sudharsan K
    Iron Contributor
    Hi, the user context on which the flow runs should have the required permission to assign the users to the item. Try to see whether you have 'Manage List' permission for the user running the flow.

Resources