Add roles to a user

Prev Next
Get
/AddUserToRoles

Allows you to add a user to multiple roles

Security
API Key
Header parameter nameapi_key
Query parameters
userId
integer (int32) Required

The user's ID

roleId
integer (int32) Required

An identifier for the role the user should belong to. You can provide multiple instances of this parameter to add the user to multiple roles. For example: roleId=0&roleId=2&roleId=20. You can discover roles available to your API integration by using the GetUserRoles command.

Responses
200

OK Response

object
status
integer (int32)

Indicates the status of the API request.

  • 0 = Success
  • 10 = Error
  • 20 = Not found
  • 30 = Invalid integration key
Example10
error
string | null

Error details. This will only have a value if an error was encountered. The status property will also be set to Error (10).