I'm trying to find a way to stop sharing permission to a person for a SharePoint Library folder using Power Automate. Apparently "Stop sharing an item or a folder" is gone and the results I get from Google searches are only for SharePoint lists. I'm still kind of new to the REST API, so is there any way I can remove permission using Automate?
I am not sure what you see, but I see the action "Stop sharing an item or a file" which is the one I use for any revoking of access.
Kind regards, John
I'm trying to stop sharing for a folder, and I've tried using that action before and it does not work... 😞
Not sure if I was doing something wrong or it just doesn't work for folders.
Believe you have custom permissions set for document library folders. It is possible to remove specified user from a particular document library folder using SharePoint REST API. Please follow the below steps.
Here I am using a manual trigger. First we need to find the user principal id. To find the id we need to know the user email address. Please see below.
Above JSON Schema is as follows:
Could you please post another thread and explain a little bit about your problem you trying to solve? Also a screenshot is very helpful.
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.