Add User to Role
documentedAssign a role to a user (and optionally a room role).
POST /api/v1/roles.addUserToRoleUser Managementno implementation yet0 runsInput
user_id*
Authenticated Rocket.Chat User ID
Enter your user ID
roleId*
Role ID to assign
Role ID
username*
Username to assign the role to
roomId
Room ID (optional for room-scoped roles)
Room ID
Calls Rocket.Chat as you (your API key is your account); keychains.dev holds the credentials.