Actions53
- Channel Actions
- Direct Message Actions
- Message Actions
- User Actions
Channel → Set Role
AI-generatedSummary
Set role of a user in a channel
Inputs
- channelType — Whether to target a public channel or a private group
- specifyRoomManually — Whether to specify the room ID manually instead of selecting from the list
- roomId (required) — Select the channel from the list or enter the ID manually
- specifyUserManually — Whether to specify the user ID manually instead of selecting from the list
- userId (required) — Select the user from the list or enter the ID manually
- roleAction (required) — The action to perform on the user's role (e.g., Add Moderator, Add Owner, etc.)
Output shape
a single object representing the Rocket.Chat API response (e.g., success info or error details)
The response may contain error information if the operation fails; otherwise it returns the raw API result.
Examples
Example 1: Add a moderator role to a user in a public channel
channelType=channel, specifyRoomManually=false, roomId=
Example 2: Remove owner role from a user in a private group using manual IDs
channelType=group, specifyRoomManually=true, roomId=