Skip to content

PermissionsResource

Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:22

Access entries on one file or folder ({ fileId } or { folderId }).

get(item): Promise<ItemPermissions>

Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:30

{ inherit, acl_scope_id, entries, effective }: the full list with share, otherwise the user’s own entries.

ItemRef

Promise<ItemPermissions>


replace(item, input): Promise<ItemPermissions>

Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:35

Replaces the own entries and the inherit flag (share for entries within your own actions).

ItemRef

ReplacePermissionsInput

Promise<ItemPermissions>


grant(item, entry): Promise<AccessEntry>

Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:43

Adds one entry (cannot_grant_more_than_held beyond your own actions).

ItemRef

AccessEntryInput

Promise<AccessEntry>


revoke(item, entryId): Promise<void>

Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:50

Removes one entry.

ItemRef

string

Promise<void>


roles(): Promise<{ items: EntryRole[]; }>

Defined in: libs/ccs-files-user-client/src/core/resources/sharing.ts:58

The roles that may appear in a role entry.

Promise<{ items: EntryRole[]; }>