Skip to content

js-bao-wss-client


js-bao-wss-client / DocumentPermissionEntry

Interface: DocumentPermissionEntry ​

A user's direct permission on a document. Returned by documents.getPermissions().

name is absent for a user who has none — a user signed in through the email-code flow, for instance, is provisioned without one — so display code should fall back to email.

Properties ​

email ​

email: string


grantedAt ​

grantedAt: string


name? ​

optional name?: string


permission ​

permission: "owner" | "read-write" | "reader"


userId ​

userId: string

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30