cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How can I edit group permission within a already broke permission folder?

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: How can I edit group permission within a already broke permission folder?

Hi @DanielCostaO365 

 

Power Automate have an action called Grant access to an item or a folder.

 

image.png

 

If the above doesn't meet your requirement then have a look at Send an HTTP request to SharePoint utilising ODATA API.

 

image.png

 

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:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/set-custom-permissions-on-a-list-by-using...

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: How can I edit group permission within a already broke permission folder?

Hi @DanielCostaO365 

 

Power Automate have an action called Grant access to an item or a folder.

 

image.png

 

If the above doesn't meet your requirement then have a look at Send an HTTP request to SharePoint utilising ODATA API.

 

image.png

 

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:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/set-custom-permissions-on-a-list-by-using...

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Users online (6,272)