Read who may reach a directory.
The permissions of one directory: the groups it is shared with directly, and the ones it inherits from the directories above it, each naming where the right comes from.
Galilea shares a folder with a user group, never with a single person, so these groups
are the whole answer to who can see the directory. GET /users?userGroup= turns a group
into the people in it.
A caller that is about to write permissions reads this first: the write replaces the
whole of groups.
A project directory has no permissions of its own and answers 403; who reaches it is
answered by GET /projects/{projectId}/members.
Requires no right beyond seeing the directory.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
directoryId*stringThe id of the directory, as returned by GET /directories.
uuidThe permissions of the directory.
application/json- response
Who may reach a directory, and with which right. Galilea shares a directory with a user group, never with a single person, so this is the whole of the answer to "who sees this folder": the people in these groups, and nobody else.
groups*array<>The permissions set on this directory itself. This is the set POST replaces, so it
is what a caller reads before writing.
inheritedGroups*array<>The permissions this directory has from the directories above it. A permission is
inherited downwards and cannot be narrowed further down, so a group listed here
reaches this directory whatever groups says. Each entry names the directory the
right comes from.
numberOfUsersWithInheritedPermissions?integerHow many people are in the groups of inheritedGroups, counted once per person. The
readable answer to how many colleagues reach this directory from above.
curl -X GET "https://example.com/directories/7d9030b3-4c0f-4051-9d54-79a6802a0c22/permissions"{ "groups": [ { "group": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "tenant_all", "name": "string", "acronym": "st", "color": "string", "emailAddress": "string", "numberOfMembers": 0, "tenant": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "user": {}, "createdAt": "2019-08-24T14:15:22Z", "lastModifiedAt": "2019-08-24T14:15:22Z" }, "permission": "view" } ], "inheritedGroups": [ { "group": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "tenant_all", "name": "string", "acronym": "st", "color": "string", "emailAddress": "string", "numberOfMembers": 0, "tenant": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "user": {}, "createdAt": "2019-08-24T14:15:22Z", "lastModifiedAt": "2019-08-24T14:15:22Z" }, "permission": "view", "directory": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "parentPath": [ "7924443e-e7c3-4361-a028-25053af0dbf9" ] } } ], "numberOfUsersWithInheritedPermissions": 42}