Remove members from channel action allows to remove members from the specified channel in Microsoft Teams.
Example of Remove members from channel 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 channel 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 channel additional properties should be specified:
Configuration
Property | Required | Type | Description |
Team | yes | String | Id or Name of the team should be specified |
Channel | yes | String | Id or Name of the channel should be specified |
Users to remove | yes | String | Id or email address or an expression to be evaluated as an email address of the members you want to remove from the channel. Ids or email address should be separated with ',' if you remove more than one member. |
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.Add_members_to_channel.UserEmails]].join(", ") + "were removed from the channel."