Remove Group Permissions on SharePoint Online
Image Source: Shutterstock.com
Dec 31, 2022 9:29 AM

Remove Group Permissions on SharePoint Online

External Blog Post

How to remove the (unique) permissions of a SharePoint Online group on a list using a Power Automate flow.

New (short) blog: How to remove the (unique) permissions of a #SharePointOnline group on a list using a #PowerAutomate flow

Resources:

RoleAssignment class

Defines the securable object role assignments for a user or group on the Web site, list, or list item.

https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-csom/ee546224(v=office.15)

RoleAssignmentCollection.GetByPrincipalId method

Returns the role assignment associated with the specified principal ID.

https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-csom/ee536165(v=office.15)

Set custom permissions on a list by using the REST interface

SharePoint sites, lists, and list items are types of SecurableObject. By default, a securable object inherits the permissions of its parent.

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

How to use Power Automate with SharePoint Online

Microsoft Power Automate (formerly known as Microsoft Flow) is a cloud-based platform that allows users to automate workflows and create custom integrations between different apps and services. It can be used with SharePoint Online, a cloud-based version of SharePoint, to automate various tasks and processes related to managing and collaborating on content stored in SharePoint.

To use Power Automate with SharePoint Online, you will need to have a Power Automate account and be a user of a SharePoint Online site. Once you have these, you can create a new Power Automate flow that includes SharePoint Online as one of the connectors.

To do this, you will need to follow these steps:

  • Sign in to Power Automate and click the "Create" button to create a new flow.
  • Select the "When a file is created or modified" trigger and select the SharePoint Online connector.
  • Select the SharePoint site and library where you want to create the flow, and then click "Create".
  • Add the actions that you want to include in your flow, such as sending an email or creating a new item in another app or service.
  • Save and test your flow to make sure it is working as expected.
  • Once you have created your flow, it will run automatically whenever a new file is created or modified in the specified SharePoint library. You can also trigger the flow manually or schedule it to run at a specific time or on a recurring basis.