Assign Role to User
Assign a role to a user. Optionally, you can set this role to a user for a specific room.
HTTP Method | URL | Requires Auth |
---|---|---|
|
|
Body Parameters
Key | Example Value | Description |
---|---|---|
|
| The role name. Alternatively, you can use the Note:
Refer to Roles for more information. |
|
| The user name. |
|
| The room ID for which the user is assigned the role. |
By default, the three major room roles available in Rocket.Chat are Owner, Leader, and Moderator. Creating custom roles is an Enterprise workspace feature. Refer Room Roles for more information.
Example Call
Example Response
Change Log
Version | Description |
---|---|
0.70.0 | Added |
Last updated