Skip to main content

Add roles to a user

PUT 

/api/v1/UserRole/User/:userId/Add

Adds the roles in the body to the user and returns the role numbers the user now holds. Adding the Administrator role, or the Reviewer role to a user who is not yet a reviewer, also records an event.

Permission required: Admin role.

Values for roles: 0 = None, 50 = Administrator, 150 = Reviewer.

Request​

Responses​

The list of role numbers the user now holds.