Skip to main content

Add Member To Channel

Description

Microsoft Teams: Add Member To Channel plugin step adds a member to the channel.

References For user permission details, see Microsoft Teams documentation at https://docs.microsoft.com/en-us/graph/api/channel-post-members?view=graph-rest-1.0&tabs=http.

Permissions Following are the required permissions:

Permission typePermission (from least to most privileged)
Delegated (work or school account)offline_access , GroupMember.Read.All, Group.Read.All, Directory.Read.All, Group.ReadWrite.All, Directory.ReadWrite.All,Channel.ReadBasic.All,ChannelSettings.Read.All, ChannelSettings.ReadWrite.All,TeamMember.Read.All, TeamMember.ReadWrite.All, ChannelMember.ReadWrite.All

Note:

  • If multiple team names with the same name are present, then provide the Team ID or unique team name.
  • The operation is allowed only for channels with a membership type value of private.
  • Channel name cannot end with a period (.). The following special characters are not supported: ~#%&*{}+/\:<>?|'".

Configurations

No.Field NameDescription
1Step NameName of the step. This name has to be unique in a single workflow.
Connection
2Tenant IDSelect the Tenant ID.
For more details, see connection documentation.
The field data type is String. This is a mandatory field.
3Client IDelect the Client ID.
For more details, see connection documentation.
The field data type is String. This is a mandatory field.
4Accept Value as variable/staticLeave checkbox unchecked to accept Client Secret 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.
5Client SecretSpecify the Client Secret of Microsoft Teams application. Client Secret is entered using a widget.
If the Accept Values as variable/static check box is selected, then the Client Secret field appears as text box and accepts static values or variables. Else, select Client Secret from the drop down list.
The field data type is String. This is a mandatory field.
6Accept Value as variable/staticLeave checkbox unchecked to accept Refresh Token from a field in the previous steps of the stream using a drop down list.
Else enable checkbox for Refresh Token field to appear as Text box.
7Refresh TokenProvide the Refresh Token provided by authorization grant flow.
If the Accept Values as variable/static check box is selected, then the Refresh Token field appears as text box and accepts static values or variables. Else, select Refresh Token from the drop down list.
The field data type is String. This is a mandatory field.
8Test ConnectionVerifies 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 Fields:
1Team Name/IDProvide the Microsoft Teams team name or Team ID.
The data type is String This field is mandatory.
2GetClick to list available teams in your user account.
3Channel Name/IDProvide the private channel name or id present in the team.
The data type is String This field is mandatory.
4GetClick to list private channels present in the team in your user account.
5Email/User IDProvide the email address or user id to add a member to the team.
The data type is String This field is mandatory.
6GetClick to list available teams in your user account.
7RoleSpecify the allowed values to act. Allowed values are ‘member’ and ‘owner’.
Default value is ‘member’.
Output Fields:
1Membership IDProvide output field name. Default value is ‘MembershipID’.
The data type is String This field is mandatory.