formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Interface MetadataCurrentUser

    This object contains all the data related to a user within formcycle. To access the user currently signed in, use XFC_METADATA.currentUser. In case the user is not signed in, the user data refers to an anonymous user. For example, the username will be null.

    This object refers to XFC_METADATA.currentUser, which should not be used anymore. Instead, use XFC_METADATA.user instead.

    interface MetadataCurrentUser {
        active?: boolean;
        email?: string;
        forename?: string;
        ldap?: Record<string, JSON>;
        mandant?: string;
        role?: string;
        surename?: string;
        title?: "KEINE_ANGABE" | "HERR" | "FRAU" | "DIVERS";
        usergroups?: string[];
        username?: string;
        "WARNING!"?: string;
    }
    Index

    Properties

    active?: boolean

    The property active was removed, as it is superfluous. Any user that can sign in must necessarily be active. Previously, XFC_METADATA.currentUser.active could never have been false. There is no alternative, as the user is now always active.

    email?: string

    The email address of this user.

    forename?: string

    The first or given name of this user.

    ldap?: Record<string, JSON>

    Raw user data from the LDAP.

    See the rawData property of this user for data retrieved from the LDAP.

    mandant?: string

    You might want use XFC_METADATA.currentClient instead (the client owning the current form).

    role?: string

    The (optional) role to which this user was assigned.

    surename?: string

    The user's family name or last name.

    title?: "KEINE_ANGABE" | "HERR" | "FRAU" | "DIVERS"

    The form of address of this user.

    usergroups?: string[]

    User groups of the user.

    username?: string

    The user's username.

    "WARNING!"?: string

    A warning message informing you that this object is deprecated and scheduled to be removed soon.