The user or group that the permission applies to.

interface PermissionSubject {
    identifier: string;
    type: "user" | "group";
}

Hierarchy

  • Record<string, unknown>
    • PermissionSubject

Properties

Properties

identifier: string

for type=user, identifier should be user's accountId or anonymous for anonymous users

for type=group, identifier should be the groupId.

type: "user" | "group"