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

How can i remove individual or all permissions on a folder?

Hello, 

 

I am building a flow which would require to remove permission for an individual and assign it to a different person for a folder. 

 

What i tried was to use this : 

 

Screenshot 2020-07-21 at 16.50.35.png

But i get a "Folder is not supported"

 

After reading a lot, it seems that certainly the above just works for ListItems and Files. 

 

Another alternative I thought was to use the REST API: _api/lists/getByTitle('Documents')/items('item')/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)

 

The above simply breaks the inheritance which can result in deleting some permssions if these are not part of the parent, but it's not a valid workaround. 

 

My question is if there is any way to remove individual , or all if necessary, permission on a folder via REST API maybe?

 

Thanks

Pedro

1 REPLY 1
Highlighted
Super User II
Super User II

Re: How can i remove individual or all permissions on a folder?

Hi @Pedrogr90 

 

The above should work. Can you please share a little bit more of your Flow so that I can try to help you.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

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!

Top Solution Authors
Top Kudoed Authors
Users online (5,621)