Office 365: Remove Group Owner
Description
Office 365: Remove Group Owner step removes an owner from a group having group type Security group or Microsoft 365 group. Note:
- Admin consent is required for providing application permissions.
- To fetch group and user details, see Office 365 Steps to get Group email / ID and User email / ID.
Permission: Office 365 Remove Group Owner step needs the following permissions:
Permission type | Permission (from least to most privileged) |
---|---|
Application | Group.ReadWrite.All, Directory.ReadWrite.All |
References
https://learn.microsoft.com/en-us/graph/api/group-delete-owners?view=graph-rest-1.0&tabs=http
Configurations
No. | Field Name | Description |
---|---|---|
1 | Step Name | Name of the step. This name has to be unique in a single workflow. |
Connection: | For details about app registration, see Office 365 App Registration for Grant Type – Password Grant or Office 365 App Registration for Grant Type Refresh Token | |
2 | Grant Type | Select the type of grant from Password Grant or Refresh Token. The data type is string. This field is mandatory. Note: It is recommended to select the grant type from Refresh Token. |
3 | Tenant ID | Tenant ID of Microsoft Account. The data type is string. This field is mandatory. |
4 | Client ID | Client ID of the Application created in Microsoft Account. The data type is string. This field is mandatory. |
Client Secret: | ||
5 | Accept Value as variable/static | Leave checkbox unchecked to accept Client Secret value from a field in the previous steps of the stream using a drop down list. Else enable checkbox for Client Secret field to appear as Text box. |
6 | Client Secret | Specify the Client Secret generated in Microsoft Account. Client Secret is entered using a widget. The widget handles both Text (static value or environment variable) and Combo (drop down containing values from previous steps). If checkbox above is enabled Client Secret field appears as a Text box and accepts static or variable values. Else if checkbox above is disabled Client Secret field appears as a drop down to select fields from previous steps. The data type is secure string. This field is mandatory. |
7 | Username | Specify the name of the user whose email attachments are to be downloaded. |
8 | Password | Specify the password for the provided user name. |
9 | Refresh Token | Specify the refresh token required to authenticate the details. |
10 | Button: Test Connection | Test connection with Client ID and Client Secret provided. Verifies whether the connection is established or not. Note: For the purpose of verification fields coming from previous steps are not allowed since field values can only be accessed when workflow is in running state. Static values and environment variables are allowed. |
Input Tab: | ||
Input Fields: | ||
1 | Group Email/ID | Specify the Group Email or ID of the group from which the owner is to be removed. |
2 | Button: Get | Click to get the group email addresses for Microsoft 365 groups or IDs for Security groups. |
3 | User Email/ID | Specify the User Email or ID of the owner to remove from the group. |
4 | Button: Get | Click to populate a list of the user email addresses or IDs you want to remove. |