Users

get

Return information about the current user (based on JWT token) including permissions

🔒 Requires the read:users permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Information about the current user with permissions

application/json
get
/api/v1/user/me
get

Return basic information about user by ID

🔒 Requires the read:users permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The user's unique ID e.g. prov0|1234567890

Example: prov0|1234567890
Responses
200

Information about user

application/json
get
/api/v1/user/{id}
post

Update roles to user by id

🔒 Requires the update:users permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The user's unique ID e.g. prov0|1234567890

Example: prov0|1234567890
Body
rolesstring[]RequiredExample: ["rol_abCdeFghIjklMnmP"]
addbooleanOptional

If true, add the new role to an existing one. If false, override an existing role

Responses
200

User roles updated successfully

application/json
post
/api/v1/user/{id}/roles

Last updated

Was this helpful?