Office 365: Remove Member From Group
Description
Office 365: Remove Member from Group plugin step removes an Office 365 user from a Group.
Permissions: Office 365 Remove Member From Group step needs the following permissions:
Permission type | Permission (from least to most privileged) |
---|---|
Application | GroupMember.ReadWrite.All, Group.ReadWrite.All, Directory.ReadWrite.All |
References:
- https://docs.microsoft.com/en-us/graph/api/group-delete-members?view=graph-rest-1.0
- https://github.com/microsoftgraph/microsoft-graph-docs/issues/4771
- https://github.com/microsoftgraph/microsoft-graph-docs/issues/546
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 O365 App Registration, Authentication, and Permissions in Azure AD | |
2 | Tenant ID | Provide a valid Tenant ID of Microsoft Account. The data type is string. This field is mandatory. |
3 | Client ID | Client ID of the Application created in Microsoft Account. The data type is string. This field is mandatory. |
Client Secret | ||
4 | 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. |
5 | 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. |
6 | 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 email address or Group ID of the group from which a user has to be removed. |
2 | Button: Get | Click this button to display a windows pop-up with list of all the available group’s emails. |
3 | User Email | Email address of the user. |
4 | Button: Get | Click this button to display a windows pop-up with list of all the available User’s Emails from the selected group. Can only fetch the top 100 User Emails on Get button. 1. After successful execution, the removed member takes some time to get reflected on the instance. 2. To remove member to security group use Group ID as the security group doesn’t have an email address. 3. We cannot remove members of Mail-Enabled Security Group through the plugin step. |