UserData: {
    abilities?: string[];
    avatar?: string;
    cancelEmailAddress?: string;
    cancelEmailSecret?: string;
    email?: string;
    emailChangeDate?: number;
    enabled?: boolean;
    group?: Group & GroupData;
    groups?: (Group & GroupData)[];
    inheritAbilities?: boolean;
    name?: string;
    nameFirst?: string;
    nameLast?: string;
    nameMiddle?: string;
    newEmailAddress?: string;
    newEmailSecret?: string;
    password?: string;
    passwordTemp?: string;
    phone?: string;
    recoverSecret?: string;
    recoverSecretDate?: number;
    revokeTokenDate?: number;
    salt?: string;
    secret?: string;
    totpSecret?: string;
    username?: string;
}

Type declaration

  • Optionalabilities?: string[]

    The abilities granted to the user.

  • Optionalavatar?: string

    The user's avatar URL. (Use $getAvatar() to support Gravatar.)

  • OptionalcancelEmailAddress?: string

    The old email address.

  • OptionalcancelEmailSecret?: string

    An email change cancellation secret.

  • Optionalemail?: string

    The user's email address.

  • OptionalemailChangeDate?: number

    The timestamp of when the email address was last changed.

  • Optionalenabled?: boolean

    Whether the user can log in.

  • Optionalgroup?: Group & GroupData

    The user's primary group.

  • Optionalgroups?: (Group & GroupData)[]

    The user's secondary groups.

  • OptionalinheritAbilities?: boolean

    Whether the user should inherit the abilities of his groups.

  • Optionalname?: string

    The user's full name. This is generated from the first, middle, and last names.

  • OptionalnameFirst?: string

    The user's first name.

  • OptionalnameLast?: string

    The user's last name.

  • OptionalnameMiddle?: string

    The user's middle name.

  • OptionalnewEmailAddress?: string

    If the user has changed their email address, this is the new one, awaiting verification.

  • OptionalnewEmailSecret?: string

    An email change proceed secret.

  • Optionalpassword?: string

    The password or password hash.

  • OptionalpasswordTemp?: string

    Temporary storage for passwords. This will be hashed before going into the database.

  • Optionalphone?: string

    The user's telephone number.

  • OptionalrecoverSecret?: string

    A recovery secret.

  • OptionalrecoverSecretDate?: number

    The timestamp of when the recovery secret was issued.

  • OptionalrevokeTokenDate?: number

    If set, this timestamp is the cutoff point for JWT issue dates. Any token issued before this date will not authenticate the user.

  • Optionalsalt?: string

    The password hash salt.

  • Optionalsecret?: string

    A verification secret.

  • OptionaltotpSecret?: string

    Two factor auth secret.

  • Optionalusername?: string

    The user's username.