
How can I edit the permissions of a SharePoint group on a list folder? This folder already has the broken legacies of the previous folder!
Or else to inherit the inheritance from the previous folder and then repeat the process of giving permissions again?
Thanks in advanced!
Hi @Anonymous
Power Automate have an action called Grant access to an item or a folder.
If the above doesn't meet your requirement then have a look at Send an HTTP request to SharePoint utilising ODATA API.
To remove the current role
_api/web/GetFileByServerRelativeUrl('<file relative url>')/ListItemAllFields/roleassignments/getbyprincipalid(<groupId>)
method: POST
To add a new role
/_api/web/GetFileByServerRelativeUrl('<file relative url>')/ListItemAllFields/roleassignments/addroleassignment(principalid=<groupId>,roledefid=<targetRoleDefinitionId>)
method: POST
Reference: