06-08-2020 18:05 PM
Wondering how to update permissions in SharePoint using Power Automate without using Designer workflows? We've got you covered! This video is all about updating SharePoint item/file permissions using Power Automate (Flow). You'll learn what Out of the Box features Power Automate already has as well as how do do even more using HTTP requests. This video should help you to move from SharePoint Designer workflows to Power Automate "Flows".
PLEASE feel free to email me at ben.fetters@sovereignsp.com or comment below with any QUESTIONS. 🙂 Check out our Power Apps and Power Automate Services as well as more videos and blogs here: https://www.sovereignsp.com
Links and Formulas:
Stop sharing an item or file (Learn More)
https://docs.microsoft.com/en-us/conn...
Grant access to an item or file (Learn More)
https://docs.microsoft.com/en-us/conn...
HTTP Requests (Learn More)
https://www.w3schools.com/tags/ref_ht...
Break Inheritance
_api/lists/getByTitle('Your List Name')/items(Item ID)/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)
Get Principal ID
Group: _api/web/SiteGroups/getbyname('Group Name')
User: _api/web/SiteUsers/getByEmail('User Email')
Set Variable EXPRESSION (Change as needed, then put this in the expression and click "OK") body('Send_an_HTTP_request_to_SharePoint_2')?['d']['id']
Set Permissions _api/lists/getByTitle('Avengers')/items(Item ID)/roleassignments/addroleassignment(principalid=Principal ID,roledefid=Permission Number)
Permission Types and Numbers
Full Control 1073741829
Design 1073741828
Edit 1073741830
Contribute 1073741827
Read 1073741826
View Only 1073741924
watch?v=lkEy9aGDyzE
Hi Ben,
What if a user wants to grant a domain SP group unique read only permissions to subsite?
Would the uri look like this: _api/web/roleassignments/addroleassignment(principalid=<groupid>,roledefid=1073741827)?