Department
Last updated on 13-May-2020 by Jakob Jakobsen Boysen
On this page
Departments can be queried using the regular query-endpoint.
Get project access
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
}
...]
Add or update access
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
EitherRead
orWrite
userID
ID of user
Remove access
DELETE /api/department/{departmentId}/rls/{userId}
Scope: ADMIN
or DATA_MANAGER_DEPARTMENT_WRITE
Remove access for a user.
Request
Path parameters
departmentId
ID of departmentuserId
ID of user or department to remove access for