Skip to content

Department

Departments can be queried using the regular query-endpoint.

GET /api/department/{departmentId}/rls

Scope: ADMIN or DATA_MANAGER

Request

Path parameters

  • departmentId ID of department

Response

A list of users and their access type:

[...
{
"isMember": boolean,
"accessType": "Read" | "Write",
"userID": string,
"user": object
}
...]

POST /api/department/{departmentId}/rls

Scope: ADMIN or DATA_MANAGER_DEPARTMENT_WRITE

Add or update access to a department and all associated entities.

Request

Path parameters

  • departmentId ID of department

Body parameters

  • accessType Either Read or Write
  • userID ID of user

DELETE /api/department/{departmentId}/rls/{userId}

Scope: ADMIN or DATA_MANAGER_DEPARTMENT_WRITE

Remove access for a user.

Request

Path parameters

  • departmentId ID of department
  • userId ID of user or department to remove access for