@servicenow/sdk - v4.4.1
    Preparing search index...
    interface sys_user {
        accumulated_roles: Typed<
            string,
            { label: "Accumulated roles"; maxLength: 4000 },
        >;
        active: Typed<
            boolean,
            {
                default: true;
                label: [
                    {
                        hint: "Inactive users do not show in user choice lists";
                        label: "Active";
                        language: "en";
                        plural: "Active";
                    },
                ];
            },
        >;
        avatar: Typed<
            string
            | number,
            {
                columnType: "user_image";
                dynamicValueDefinitions: {
                    calculatedValue: "(function calculatedFieldValue(current) { if (typeof GlideAvatarFinder != \"undefined\") return GlideAvatarFinder.getAvatarID(current.getUniqueValue()) })(current);";
                    type: "calculated_value";
                };
                label: "Avatar";
                readOnly: true;
                readOnlyOption: "instance_configured";
            },
        >;
        building: Typed<
            | string
            | Record<"cmn_building">
            | ExplicitKey<"cmn_building">
            | TableBrand<"cmn_building">,
            { label: "Building"; referenceTable: "cmn_building" },
        >;
        calendar_integration: Typed<
            number,
            {
                default: "1";
                dropdown: "dropdown_with_none";
                label: "Calendar integration";
            },
        >;
        city: Typed<string, { label: "City" }>;
        company: Typed<
            | string
            | Record<"core_company">
            | ExplicitKey<"core_company">
            | TableBrand<"core_company">,
            { label: "Company"; referenceTable: "core_company" },
        >;
        cost_center: Typed<
            | string
            | Record<"cmn_cost_center">
            | ExplicitKey<"cmn_cost_center">
            | TableBrand<"cmn_cost_center">,
            { label: "Cost center"; referenceTable: "cmn_cost_center" },
        >;
        country: Typed<
            string,
            { dropdown: "dropdown_without_none"; label: "Country code"; maxLength: 3 },
        >;
        date_format: Typed<
            string,
            {
                dropdown: "dropdown_with_none";
                label: [
                    {
                        hint: "Display dates with this format (blank means system default)";
                        label: "Date format";
                        language: "en";
                        plural: "Date formats";
                    },
                ];
            },
        >;
        default_perspective: Typed<
            | string
            | Record<"sys_perspective">
            | ExplicitKey<"sys_perspective">
            | TableBrand<"sys_perspective">,
            { label: "Default perspective"; referenceTable: "sys_perspective" },
        >;
        department: Typed<
            | string
            | Record<"cmn_department">
            | ExplicitKey<"cmn_department">
            | TableBrand<"cmn_department">,
            {
                dependent: "company";
                label: "Department";
                referenceTable: "cmn_department";
            },
        >;
        edu_status: Typed<
            string,
            {
                active: false;
                default: "faculty";
                dropdown: "dropdown_with_none";
                label: "EDU Status";
            },
        >;
        email: Typed<`${string}@${string}`, { label: "Email"; maxLength: 100 }>;
        employee_number: Typed<string, { label: "Employee number" }>;
        enable_multifactor_authn: Typed<
            boolean,
            { default: false; label: "Enable Multifactor Authentication" },
        >;
        failed_attempts: Typed<number, { label: "Failed login attempts" }>;
        fax: Typed<
            string
            | number,
            { columnType: "phone_number_e164"; label: "Fax" },
        >;
        federated_id: Typed<string, { label: "Federated ID"; maxLength: 100 }>;
        first_name: Typed<string, { label: "First name"; maxLength: 50 }>;
        gender: Typed<string, { dropdown: "dropdown_with_none"; label: "Gender" }>;
        hashed_user_id: Typed<string, { label: "Hashed User ID"; maxLength: 200 }>;
        home_phone: Typed<
            string
            | number,
            { columnType: "ph_number"; label: "Home phone" },
        >;
        identity_type: Typed<
            "machine"
            | "ai_agent"
            | "unclassified"
            | "human",
            {
                choices: {
                    ai_agent: { label: "AI Agent"; sequence: 300 };
                    human: { label: "Human"; sequence: 100 };
                    machine: { label: "Machine"; sequence: 200 };
                    unclassified: { label: "-"; sequence: 400 };
                };
                dropdown: "dropdown_without_none";
                label: "Identity type";
            },
        >;
        internal_integration_user: Typed<
            boolean,
            { default: false; label: "Internal Integration User"; maxLength: 1 },
        >;
        introduction: Typed<
            string,
            { dropdown: "dropdown_with_none"; label: "Prefix" },
        >;
        last_login: Typed<`${number}-${number}-${number}`, { label: "Last login" }>;
        last_login_device: Typed<
            string,
            {
                active: false;
                attributes: { no_text_index: true };
                label: "Last login device";
            },
        >;
        last_login_time: Typed<
            `${number}-${number}-${number} ${number}:${number}:${number}`,
            { label: "Last login time" },
        >;
        last_name: Typed<string, { label: "Last name"; maxLength: 50 }>;
        last_password: Typed<string, { active: false; label: "Last password" }>;
        ldap_server: Typed<
            | string
            | Record<"ldap_server_config">
            | ExplicitKey<"ldap_server_config">
            | TableBrand<"ldap_server_config">,
            {
                attributes: { encode_utf8: false; no_text_index: true };
                label: "LDAP server";
                referenceTable: "ldap_server_config";
            },
        >;
        location: Typed<
            | string
            | Record<"cmn_location">
            | ExplicitKey<"cmn_location">
            | TableBrand<"cmn_location">,
            {
                attributes: { tree_picker: true };
                dependent: "company";
                label: "Location";
                referenceTable: "cmn_location";
            },
        >;
        locked_out: Typed<
            boolean,
            {
                default: false;
                label: [
                    {
                        hint: "When checked, user cannot login";
                        label: "Locked out";
                        language: "en";
                        plural: "Locked out";
                    },
                ];
            },
        >;
        manager: Typed<
            | string
            | Record<"sys_user">
            | ExplicitKey<"sys_user">
            | TableBrand<"sys_user">,
            {
                attributes: { no_auto_map: true };
                label: "Manager";
                referenceTable: "sys_user";
            },
        >;
        manager_hp1: Typed<
            string
            | number,
            {
                attributes: {
                    loader_exempt: true;
                    serializer: "com.glide.script.OmittedElementXMLSerializer";
                };
                columnType: "record_hierarchy_path";
                label: "Manager HP1";
                maxLength: 255;
                readOnly: true;
                readOnlyOption: "instance_configured";
            },
        >;
        middle_name: Typed<string, { label: "Middle name"; maxLength: 50 }>;
        mobile_phone: Typed<
            string
            | number,
            { columnType: "ph_number"; label: "Mobile phone" },
        >;
        name: Typed<
            string,
            {
                dynamicValueDefinitions: {
                    calculatedValue: "if (current.first_name.nil() && current.last_name.nil() && !current.name.nil()) {\n var names = current.name.toString().split(\" \");\n if (names.length > 1) {\n current.first_name = names[0];\n names.shift();\n current.last_name = names.join(\" \");\n } else \n current.last_name = names[0];\n} \n\nif(current.first_name.nil()) { \n current.last_name; \n } else { \n current.first_name + ' ' + current.last_name;\n }";
                    type: "calculated_value";
                };
                label: "Name";
                maxLength: 151;
            },
        >;
        notification: Typed<
            number,
            {
                default: "2";
                dropdown: "dropdown_without_none";
                label: [
                    {
                        hint: "Enable or disable notifications for this user ie. email, SMS etc";
                        label: "Notification";
                        language: "en";
                        plural: "Notifications";
                    },
                ];
            },
        >;
        password_needs_reset: Typed<
            boolean,
            {
                label: [
                    {
                        hint: "User will be prompted to change password at next login";
                        label: "Password needs reset";
                        language: "en";
                        plural: "Password needs resets";
                    },
                ];
            },
        >;
        phone: Typed<
            string
            | number,
            { columnType: "ph_number"; label: "Business phone" },
        >;
        photo: Typed<string | number, { columnType: "user_image"; label: "Photo" }>;
        preferred_language: Typed<
            string,
            { dropdown: "dropdown_with_none"; label: "Language" },
        >;
        roles: Typed<
            (string | Role)[],
            {
                array: true;
                attributes: { record_watcher_blacklist: true };
                label: "Roles";
                maxLength: 40;
            },
        >;
        schedule: Typed<
            | string
            | Record<"cmn_schedule">
            | ExplicitKey<"cmn_schedule">
            | TableBrand<"cmn_schedule">,
            {
                attributes: { encode_utf8: false; ref_contributions: "schedule_show" };
                label: "Schedule";
                referenceTable: "cmn_schedule";
            },
        >;
        source: Typed<string, { label: "Source"; maxLength: 255 }>;
        state: Typed<string, { label: "State / Province" }>;
        street: Typed<string, { label: "Street"; maxLength: 255 }>;
        sys_class_name: Typed<
            string,
            {
                default: "javascript:current.getTableName();";
                dropdown: "dropdown_without_none";
                label: "Class";
                maxLength: 80;
            },
        >;
        sys_created_by: Typed<
            string,
            { label: [{ label: "Created by"; language: "en"; plural: "Created by" }] },
        >;
        sys_created_on: Typed<
            `${number}-${number}-${number} ${number}:${number}:${number}`,
            { label: [{ label: "Created"; language: "en"; plural: "Created" }] },
        >;
        sys_domain: Typed<
            Record<"domain">
            | "global",
            {
                label: [
                    {
                        hint: "Domain to which the user belongs";
                        label: "Domain";
                        language: "en";
                        plural: "Domains";
                    },
                ];
                referenceTable: "sys_user_group";
            },
        >;
        sys_domain_path: Typed<
            string,
            {
                attributes: { case_sensitive: true };
                default: "/";
                label: "Domain Path";
            },
        >;
        sys_id: Typed<
            string,
            {
                label: [{ label: "Sys ID"; language: "en"; plural: "Sys IDs" }];
                primary: true;
            },
        >;
        sys_mod_count: Typed<
            number,
            { label: [{ label: "Updates"; language: "en"; plural: "Updates" }] },
        >;
        sys_updated_by: Typed<
            string,
            { label: [{ label: "Updated by"; language: "en"; plural: "Updated by" }] },
        >;
        sys_updated_on: Typed<
            `${number}-${number}-${number} ${number}:${number}:${number}`,
            { label: [{ label: "Updated"; language: "en"; plural: "Updated" }] },
        >;
        time_format: Typed<
            string,
            {
                dropdown: "dropdown_with_none";
                label: [
                    {
                        hint: "Display times with this format (blank means system default)";
                        label: "Time format";
                        language: "en";
                        plural: "Time formats";
                    },
                ];
            },
        >;
        time_zone: Typed<
            string,
            { dropdown: "dropdown_with_none"; label: "Time zone" },
        >;
        title: Typed<
            string
            | ((string | number) & Record<never, never>),
            { dropdown: "suggestion"; label: "Title"; maxLength: 60 },
        >;
        user_name: Typed<string, { label: "User ID"; unique: true }>;
        user_password: Typed<
            string
            | number,
            { columnType: "password"; label: "Password"; maxLength: 100 },
        >;
        vip: Typed<boolean, { default: false; label: "VIP" }>;
        web_service_access_only: Typed<
            boolean,
            {
                default: false;
                label: [
                    {
                        hint: "Prevent user from accessing UI, and require a SOAP role to make API protocol calls (such as SOAP and WSDL requests)";
                        label: "Web service access only";
                        language: "en";
                        plural: "Web service access onlies";
                    },
                ];
            },
        >;
        zip: Typed<string, { label: "Zip / Postal code" }>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    accumulated_roles: Typed<
        string,
        { label: "Accumulated roles"; maxLength: 4000 },
    >
    active: Typed<
        boolean,
        {
            default: true;
            label: [
                {
                    hint: "Inactive users do not show in user choice lists";
                    label: "Active";
                    language: "en";
                    plural: "Active";
                },
            ];
        },
    >
    avatar: Typed<
        string
        | number,
        {
            columnType: "user_image";
            dynamicValueDefinitions: {
                calculatedValue: "(function calculatedFieldValue(current) { if (typeof GlideAvatarFinder != \"undefined\") return GlideAvatarFinder.getAvatarID(current.getUniqueValue()) })(current);";
                type: "calculated_value";
            };
            label: "Avatar";
            readOnly: true;
            readOnlyOption: "instance_configured";
        },
    >
    building: Typed<
        | string
        | Record<"cmn_building">
        | ExplicitKey<"cmn_building">
        | TableBrand<"cmn_building">,
        { label: "Building"; referenceTable: "cmn_building" },
    >
    calendar_integration: Typed<
        number,
        {
            default: "1";
            dropdown: "dropdown_with_none";
            label: "Calendar integration";
        },
    >
    city: Typed<string, { label: "City" }>
    company: Typed<
        | string
        | Record<"core_company">
        | ExplicitKey<"core_company">
        | TableBrand<"core_company">,
        { label: "Company"; referenceTable: "core_company" },
    >
    cost_center: Typed<
        | string
        | Record<"cmn_cost_center">
        | ExplicitKey<"cmn_cost_center">
        | TableBrand<"cmn_cost_center">,
        { label: "Cost center"; referenceTable: "cmn_cost_center" },
    >
    country: Typed<
        string,
        { dropdown: "dropdown_without_none"; label: "Country code"; maxLength: 3 },
    >
    date_format: Typed<
        string,
        {
            dropdown: "dropdown_with_none";
            label: [
                {
                    hint: "Display dates with this format (blank means system default)";
                    label: "Date format";
                    language: "en";
                    plural: "Date formats";
                },
            ];
        },
    >
    default_perspective: Typed<
        | string
        | Record<"sys_perspective">
        | ExplicitKey<"sys_perspective">
        | TableBrand<"sys_perspective">,
        { label: "Default perspective"; referenceTable: "sys_perspective" },
    >
    department: Typed<
        | string
        | Record<"cmn_department">
        | ExplicitKey<"cmn_department">
        | TableBrand<"cmn_department">,
        {
            dependent: "company";
            label: "Department";
            referenceTable: "cmn_department";
        },
    >
    edu_status: Typed<
        string,
        {
            active: false;
            default: "faculty";
            dropdown: "dropdown_with_none";
            label: "EDU Status";
        },
    >
    email: Typed<`${string}@${string}`, { label: "Email"; maxLength: 100 }>
    employee_number: Typed<string, { label: "Employee number" }>
    enable_multifactor_authn: Typed<
        boolean,
        { default: false; label: "Enable Multifactor Authentication" },
    >
    failed_attempts: Typed<number, { label: "Failed login attempts" }>
    fax: Typed<string | number, { columnType: "phone_number_e164"; label: "Fax" }>
    federated_id: Typed<string, { label: "Federated ID"; maxLength: 100 }>
    first_name: Typed<string, { label: "First name"; maxLength: 50 }>
    gender: Typed<string, { dropdown: "dropdown_with_none"; label: "Gender" }>
    hashed_user_id: Typed<string, { label: "Hashed User ID"; maxLength: 200 }>
    home_phone: Typed<
        string
        | number,
        { columnType: "ph_number"; label: "Home phone" },
    >
    identity_type: Typed<
        "machine"
        | "ai_agent"
        | "unclassified"
        | "human",
        {
            choices: {
                ai_agent: { label: "AI Agent"; sequence: 300 };
                human: { label: "Human"; sequence: 100 };
                machine: { label: "Machine"; sequence: 200 };
                unclassified: { label: "-"; sequence: 400 };
            };
            dropdown: "dropdown_without_none";
            label: "Identity type";
        },
    >
    internal_integration_user: Typed<
        boolean,
        { default: false; label: "Internal Integration User"; maxLength: 1 },
    >
    introduction: Typed<string, { dropdown: "dropdown_with_none"; label: "Prefix" }>
    last_login: Typed<`${number}-${number}-${number}`, { label: "Last login" }>
    last_login_device: Typed<
        string,
        {
            active: false;
            attributes: { no_text_index: true };
            label: "Last login device";
        },
    >
    last_login_time: Typed<
        `${number}-${number}-${number} ${number}:${number}:${number}`,
        { label: "Last login time" },
    >
    last_name: Typed<string, { label: "Last name"; maxLength: 50 }>
    last_password: Typed<string, { active: false; label: "Last password" }>
    ldap_server: Typed<
        | string
        | Record<"ldap_server_config">
        | ExplicitKey<"ldap_server_config">
        | TableBrand<"ldap_server_config">,
        {
            attributes: { encode_utf8: false; no_text_index: true };
            label: "LDAP server";
            referenceTable: "ldap_server_config";
        },
    >
    location: Typed<
        | string
        | Record<"cmn_location">
        | ExplicitKey<"cmn_location">
        | TableBrand<"cmn_location">,
        {
            attributes: { tree_picker: true };
            dependent: "company";
            label: "Location";
            referenceTable: "cmn_location";
        },
    >
    locked_out: Typed<
        boolean,
        {
            default: false;
            label: [
                {
                    hint: "When checked, user cannot login";
                    label: "Locked out";
                    language: "en";
                    plural: "Locked out";
                },
            ];
        },
    >
    manager: Typed<
        | string
        | Record<"sys_user">
        | ExplicitKey<"sys_user">
        | TableBrand<"sys_user">,
        {
            attributes: { no_auto_map: true };
            label: "Manager";
            referenceTable: "sys_user";
        },
    >
    manager_hp1: Typed<
        string
        | number,
        {
            attributes: {
                loader_exempt: true;
                serializer: "com.glide.script.OmittedElementXMLSerializer";
            };
            columnType: "record_hierarchy_path";
            label: "Manager HP1";
            maxLength: 255;
            readOnly: true;
            readOnlyOption: "instance_configured";
        },
    >
    middle_name: Typed<string, { label: "Middle name"; maxLength: 50 }>
    mobile_phone: Typed<
        string
        | number,
        { columnType: "ph_number"; label: "Mobile phone" },
    >
    name: Typed<
        string,
        {
            dynamicValueDefinitions: {
                calculatedValue: "if (current.first_name.nil() && current.last_name.nil() && !current.name.nil()) {\n var names = current.name.toString().split(\" \");\n if (names.length > 1) {\n current.first_name = names[0];\n names.shift();\n current.last_name = names.join(\" \");\n } else \n current.last_name = names[0];\n} \n\nif(current.first_name.nil()) { \n current.last_name; \n } else { \n current.first_name + ' ' + current.last_name;\n }";
                type: "calculated_value";
            };
            label: "Name";
            maxLength: 151;
        },
    >
    notification: Typed<
        number,
        {
            default: "2";
            dropdown: "dropdown_without_none";
            label: [
                {
                    hint: "Enable or disable notifications for this user ie. email, SMS etc";
                    label: "Notification";
                    language: "en";
                    plural: "Notifications";
                },
            ];
        },
    >
    password_needs_reset: Typed<
        boolean,
        {
            label: [
                {
                    hint: "User will be prompted to change password at next login";
                    label: "Password needs reset";
                    language: "en";
                    plural: "Password needs resets";
                },
            ];
        },
    >
    phone: Typed<
        string
        | number,
        { columnType: "ph_number"; label: "Business phone" },
    >
    photo: Typed<string | number, { columnType: "user_image"; label: "Photo" }>
    preferred_language: Typed<
        string,
        { dropdown: "dropdown_with_none"; label: "Language" },
    >
    roles: Typed<
        (string | Role)[],
        {
            array: true;
            attributes: { record_watcher_blacklist: true };
            label: "Roles";
            maxLength: 40;
        },
    >
    schedule: Typed<
        | string
        | Record<"cmn_schedule">
        | ExplicitKey<"cmn_schedule">
        | TableBrand<"cmn_schedule">,
        {
            attributes: { encode_utf8: false; ref_contributions: "schedule_show" };
            label: "Schedule";
            referenceTable: "cmn_schedule";
        },
    >
    source: Typed<string, { label: "Source"; maxLength: 255 }>
    state: Typed<string, { label: "State / Province" }>
    street: Typed<string, { label: "Street"; maxLength: 255 }>
    sys_class_name: Typed<
        string,
        {
            default: "javascript:current.getTableName();";
            dropdown: "dropdown_without_none";
            label: "Class";
            maxLength: 80;
        },
    >
    sys_created_by: Typed<
        string,
        { label: [{ label: "Created by"; language: "en"; plural: "Created by" }] },
    >
    sys_created_on: Typed<
        `${number}-${number}-${number} ${number}:${number}:${number}`,
        { label: [{ label: "Created"; language: "en"; plural: "Created" }] },
    >
    sys_domain: Typed<
        Record<"domain">
        | "global",
        {
            label: [
                {
                    hint: "Domain to which the user belongs";
                    label: "Domain";
                    language: "en";
                    plural: "Domains";
                },
            ];
            referenceTable: "sys_user_group";
        },
    >
    sys_domain_path: Typed<
        string,
        {
            attributes: { case_sensitive: true };
            default: "/";
            label: "Domain Path";
        },
    >
    sys_id: Typed<
        string,
        {
            label: [{ label: "Sys ID"; language: "en"; plural: "Sys IDs" }];
            primary: true;
        },
    >
    sys_mod_count: Typed<
        number,
        { label: [{ label: "Updates"; language: "en"; plural: "Updates" }] },
    >
    sys_updated_by: Typed<
        string,
        { label: [{ label: "Updated by"; language: "en"; plural: "Updated by" }] },
    >
    sys_updated_on: Typed<
        `${number}-${number}-${number} ${number}:${number}:${number}`,
        { label: [{ label: "Updated"; language: "en"; plural: "Updated" }] },
    >
    time_format: Typed<
        string,
        {
            dropdown: "dropdown_with_none";
            label: [
                {
                    hint: "Display times with this format (blank means system default)";
                    label: "Time format";
                    language: "en";
                    plural: "Time formats";
                },
            ];
        },
    >
    time_zone: Typed<string, { dropdown: "dropdown_with_none"; label: "Time zone" }>
    title: Typed<
        string
        | ((string | number) & Record<never, never>),
        { dropdown: "suggestion"; label: "Title"; maxLength: 60 },
    >
    user_name: Typed<string, { label: "User ID"; unique: true }>
    user_password: Typed<
        string
        | number,
        { columnType: "password"; label: "Password"; maxLength: 100 },
    >
    vip: Typed<boolean, { default: false; label: "VIP" }>
    web_service_access_only: Typed<
        boolean,
        {
            default: false;
            label: [
                {
                    hint: "Prevent user from accessing UI, and require a SOAP role to make API protocol calls (such as SOAP and WSDL requests)";
                    label: "Web service access only";
                    language: "en";
                    plural: "Web service access onlies";
                },
            ];
        },
    >
    zip: Typed<string, { label: "Zip / Postal code" }>