UserDetails

The UserDetails interface represents detailed information about a user within a subscription context.

The UserDetails interface defines the structure for detailed information about a user, typically retrieved in the context of a subscription. It includes core user identifiers, display information, creation timestamp, and their associated permissions within a subscription.

Interface Definition

export interface UserDetails {
    id: string;
    email: string;
    display_name: string | null;
    avatar_url: string | null;
    create_timestamp: number;
    permissions: string[];
    status?: 'active' | 'pending';
    invite_id?: string;
    pending_permissions?: string[];
}

Properties

PropertyTypeDescription
idstringThe unique identifier (UID) of the user.
emailstringThe email address of the user.
display_namestring | nullThe display name of the user, or null if not available.
avatar_urlstring | nullThe URL to the user’s avatar image, or null if not available.
create_timestampnumberThe timestamp (in milliseconds) when the user account was created.
permissionsstring[]An array of permission keys (e.g., ['admin', 'editor']) the user currently holds.
status'active' | 'pending'(Optional) The status of the user’s membership in the subscription. Can be 'active' or 'pending'.
invite_idstring(Optional) If the user is pending, the ID of the invite that brought them to the subscription.
pending_permissionsstring[](Optional) If the user is pending, the permissions they will receive upon accepting the invite.

Last modified August 17, 2025: cloud functions doc (4817130)