0

I'm using Modern experience in SharePoint Online.

I want to deprive all users permission from SharePoint site except for a specific user by PowerAutomate.

I know this is possible by PowerShell.

But I want to do it regularly, so I want to do it with Power Automate. Is it possible?

I would appreciate it if you could teach me how to do it. Thank you for any information.

1 Answer 1

2

For using flow to remove user site permission, we will need to use rest api and call the http request to do so. The most default way can be remove user from permission group, and a simple demo will be like below: enter image description here

The GRP2 is the group name and I use the method removeByLoginName. This is not the only way, you can try other options with Rest api.

Here are some references for rest api, you can have a try with them:

https://www.c-sharpcorner.com/article/add-and-remove-users-from-security-group-in-sharepoint-2016-using-rest-api/

https://social.msdn.microsoft.com/Forums/office/en-US/1c70bfb1-039d-43cd-94b5-6138893bde8b/rest-api-removedelete-sp-user-from-group?forum=sharepointdevelopment

Also some 3rd party actions are available for handling such process: https://plumsail.com/docs/actions/v1.x/flow/how-tos/sharepoint/create-sp-group-add-users.html

1
  • Thank you very much for your answer. My requirements have changed a bit so I would be very happy if you could see my latest questions.
    – Hyonta
    Commented Jan 28, 2021 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.