SongGuess
    Preparing search index...

    Interface CloudflareAccessIdentity

    Represents the identity of a user authenticated via Cloudflare Access. This matches the result of calling /cdn-cgi/access/get-identity.

    The exact structure of the returned object depends on the identity provider configuration for the Access application. The fields below represent commonly available properties, but additional provider-specific fields may be present.

    interface CloudflareAccessIdentity {
        account_id?: string;
        amr?: string[];
        devicePosture?: Record<string, unknown>;
        email?: string;
        geo?: { country: string };
        groups?: { email?: string; id: string; name: string }[];
        iat?: number;
        idp?: { id: string; type: string };
        ip?: string;
        is_gateway?: boolean;
        is_warp?: boolean;
        name?: string;
        user_uuid?: string;
        [key: string]: unknown;
    }

    Hierarchy

    • Record<string, unknown>
      • CloudflareAccessIdentity

    Indexable

    • [key: string]: unknown
    Index
    account_id?: string

    The Cloudflare account ID.

    amr?: string[]

    Authentication methods used (e.g., "pwd").

    devicePosture?: Record<string, unknown>

    Device posture check results, keyed by check ID.

    email?: string

    The user's email address, if available from the identity provider.

    geo?: { country: string }

    Geographic information about where the user authenticated.

    groups?: { email?: string; id: string; name: string }[]

    Group memberships from the identity provider.

    iat?: number

    Login timestamp (Unix epoch seconds).

    idp?: { id: string; type: string }

    Identity provider information.

    ip?: string

    The user's IP address at authentication time.

    is_gateway?: boolean

    True if the user is authenticated via Cloudflare Gateway.

    is_warp?: boolean

    True if the user connected via Cloudflare WARP.

    name?: string

    The user's display name.

    user_uuid?: string

    The user's unique identifier.