Skip to content

AccessUser

AccessUser = object

Defined in: packages/schema/src/access/types.ts:7

The signed-in user as access rules see it; roles come from the auth user record.

[key: string]: unknown

optional id?: string | number

Defined in: packages/schema/src/access/types.ts:9

The user’s id, which .own compares with the resource’s .owner(...) field.


optional roles?: readonly string[]

Defined in: packages/schema/src/access/types.ts:11

The user’s roles, with organizations those of the membership too.