Skip to Content
bpms.ai
ReferenceAccess

Assign a role to a user

PUT
/api/v1/access/users/{userId}/roles/{roleId}

Gives a user of the tenant of the request one of the tenant's roles. The caller needs 6.2.2.2 (edit users) and every code of the role. Assigning a role the user has changes nothing.

Authorization

bearer
headerAuthorizationBearer <token>

The token of a session that createSession opened

Path Parameters

userId*integer

Id of the user

Formatint64
roleId*integer

Id of the role

Formatint64

Response Body

The user has the role

Example Request
curl -X PUT 'https://bpms.bpms.work/api/v1/access/users/0/roles/0'
Example Response
Empty