Remove Role
Remove a role from a user. Optionally, you can remove this role from a specified scope.
Permission required: access-permissions
Body Parameters
Example Call
Example Response
Last updated
Rocket.Chat versions receive support for six months after release.
HTTP Method | URL | Requires Auth |
---|---|---|
Key | Example Value | Description |
---|---|---|
POST
/api/v1/roles.removeUserFromRole
roleName
*
guest
The role name.
username
*
rocket.chat
The user name.
roomId
dK7vNYXMdHGLdukpL
The scope where the role should be removed from.