Documentation
    Preparing search index...

    Interface RbacUserContext

    Authenticated user or M2M agent security context passed into the RBAC engine.

    interface RbacUserContext {
        attributes?: Record<string, any>;
        email?: string;
        id: string;
        permissions?: string[];
        roles: string[];
        subjectType?: SubjectType;
    }
    Index

    Properties

    attributes?: Record<string, any>

    Dynamic context attributes (e.g. tenantId, farmId, ipAddress)

    email?: string

    Optional email address

    id: string

    Unique user, service account, or agent identifier

    permissions?: string[]

    Optional fine-grained permission claims

    roles: string[]

    Assigned role identifiers

    subjectType?: SubjectType

    Subject kind (defaults to 'human' if not specified)