Usage
teams channel member set
Description
Updates role of the specified user in the specified Microsoft Teams private channel.
Options
| Option |
Description |
--teamId [teamId] |
The Id of the Microsoft Team. Specify either teamId or teamName but not both. |
--teamName [teamName] |
The name of the Microsoft Team. Specify either teamId or teamName but not both. |
--channelId [channelId] |
The Id of the Microsoft Team channel. Specify either channelId or channelName but not both. |
--channelName [channelName] |
The name of the Microsoft Team channel. Specify either channelId or channelName but not both. |
--userName [userName] |
User's UPN (user principal name, eg. [email protected]). Specify either userName, userId or id but not multiple. |
--userId [userId] |
User's Azure AD Id. Specify either userName, userId or id but not multiple. |
--id [id] |
Channel membership Id of a user. Specify either userName, userId or id but not multiple. |
-r, --role <role> |
The role to be assigned to the new user: owner, member. |
Additional Info
Docs: Update member in channel
Discussed in #3168
Usage
teams channel member set
Description
Updates role of the specified user in the specified Microsoft Teams private channel.
Options
--teamId [teamId]--teamName [teamName]--channelId [channelId]--channelName [channelName]--userName [userName]--userId [userId]--id [id]-r, --role <role>Additional Info
Docs: Update member in channel
Discussed in #3168