Action Remove members from team will remove members from the existing team in Microsoft Teams.
Example of Remove members from team action configuration on the current site
For more information about Action Builder read Action Builder introduction article.
Note 1: In order to use the Remove members from team action in Scheduled/Triggered Actions skybow Teams Connector has to be approved by a tenant administrator and site has to be added to Approved sites list before this action can be used. Learn more about skybow M365 Connectors.
Note 2: When you deploy the solution to another SharePoint tenant, it requires approval of skybow Teams Connector on the deployment tenant as well.
To configure the action Remove members from team additional properties should be specified:
Configuration
Property | Required | Type | Description |
Team | yes | String | Specify the Id or the name of the team. |
Users to remove | yes | String | Specify Id or email address or an expression to be evaluated as an email address of the member. You can one or more email addresses separeted with ',' |
Availability
Modern Forms | List Actions | Scheduled/Triggered Actions |
- | - | ✓ |
Output
Output Parameter | Type | Description |
UserIDs | Array of strings | Returns user ids from azure of the members as output parameter and can be used in subsequent actions. |
UserEmails | Array of strings | Returns emails of the members |
Example:
To use this output and set the value to the text field open Expression builder and Assignment expression :
"Users: " [[@Actions.Remove_members_from_team.UserEmails]].join(", ") + "were removed from the team."