
Announcements
I have two flows that I'm currently working on. One grants permissions to a guest user to set of folders in SharePoint Online upon. The second flow needs to revoke/remove the folder permissions in SharePoint on demand.
_api/web/GetFolderByServerRelativeUrl('SPWeb.ServerRelativeUrl/shared documents/TestCompany')/ListItemAllFields/roleassignments/removeroleassignment(principalid=@{outputs('Compose')})
Does anyone know of a better way to revoke/remove guest user access to SharePoint Folders via Flow?
Any help would be appreciated.
Hello Rocky,
I reckon you could try below OOB actions to
'Grant access to an item or a folder' as replacement.
https://docs.microsoft.com/en-us/connectors/sharepointonline/#grant-access-to-an-item-or-a-folder
While the removerole operation best done by Sharepoint rest api via http request.