Skip to content

User roles

GET /api/userRole

Get all available user roles and their current assignments.

PUT /api/userRole/assign

Scope: ADMIN or DATA_MANAGER

Assign a role to a user or department.

Request

Body

{
"name": string, // name of the role
"userID": string, // set userID or departmentID, not both
"departmentID": string
}

PUT /api/userRole/revoke

Scope: ADMIN or DATA_MANAGER

Revoke a role from a user or department.

Request

Body

{
"name": string,
"userID": string,
"departmentID": string
}

DELETE /api/userRole/{id}

Scope: ADMIN or DATA_MANAGER

Delete a user role assignment by its record ID.

Request

Path parameters

  • id ID of the role assignment record