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

%3CLINGO-SUB%20id%3D%22lingo-sub-1549104%22%20slang%3D%22en-US%22%3EMS%20Flow%20throwing%20access%20denied%20when%20ried%20to%20set%20unique%20permission%20at%20item%20level%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1549104%22%20slang%3D%22en-US%22%3E%3CP%3EHelp%20needed%20to%20figure%20out%20why%20MS%20flow%20is%20throwing%20the%20access%20denied%20when%20tried%20to%20set%20unique%20permission%20on%20triggered%20events.%20The%20challenge%20is%20the%20401%20error%20don't%20come%20when%20the%20inheritance%20has%26nbsp%3B%20broken.%20I%20am%20trying%20to%20set%20permission%20for%20SharePoint%20group%20using%20Rest%20API%20as%20below.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22%3CA%20href%3D%22https%3A%2F%2Ftenantname.sharepoint.com%2Fsites%2FSiteName%2F%2520_api%2Flists%2FgetByTitle('Flow%2520Permission%2520Test')%2Fitems(2)%2Froleassignments%2Faddroleassignment(principalid%3D18%2Croledefid%3D1073741826%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenantname.sharepoint.com%2Fsites%2FSiteName%2F%2520_api%2Flists%2FgetByTitle('Flow%2520Permission%2520Test')%2Fitems(2)%2Froleassignments%2Faddroleassignment(principalid%3D18%2Croledefid%3D1073741826%3C%2FA%3E)%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Vikram_Samal_0-1595893656779.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208332i5482EC2C01864D75%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Vikram_Samal_0-1595893656779.png%22%20alt%3D%22Vikram_Samal_0-1595893656779.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAny%20pointers%20will%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EVik%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1549104%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Frequent Contributor

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'...)"

 

Vikram_Samal_0-1595893656779.png

Any pointers will help.

 

Thanks

Vik

 

1 Reply
Highlighted
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.