Users

Set a user's RBAC roles

Changed on

Replaces the user's roles. The set holds exactly one of admin, requester, viewer plus any extra roles. Demoting a user below admin removes the ability to answer approval requests, even when the user is listed as an approver. Fails with 409 when it would leave no active admin.

put/api/users/{id}/roles

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/api/users/{id}/roles
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

rolesstring[] required

Response

The user's roles after the change

userIdstring required

Changes