@servicenow/sdk - v4.13.3
    Preparing search index...
    interface sys_user_role {
        assignable_by: Typed<
            | string
            | ExplicitKey<"sys_user_role">
            | TableBrand<"sys_user_role">
            | Record<"sys_user_role">,
            {
                label: [
                    {
                        hint: "If the related application has Scoped administration enabled, a user needs to have the 'Assignable By' role to be able to assign this role to another user";
                        label: "Assignable by";
                        plural: "Assignable by";
                    },
                ];
                referenceQual: "javascript:if (gs.hasRole('admin')) 'sys_scope!=global'; else 'sys_scope=' + current.sys_scope;";
                referenceTable: "sys_user_role";
            },
        >;
        can_delegate: Typed<
            boolean,
            {
                default: true;
                label: [
                    {
                        hint: "Can be delegated";
                        label: "Can delegate";
                        plural: "Can delegates";
                    },
                ];
            },
        >;
        description: Typed<
            string,
            {
                attributes: { no_truncate: true };
                label: "Description";
                maxLength: 1000;
            },
        >;
        elevated_privilege: Typed<
            boolean,
            {
                default: false;
                label: [
                    {
                        hint: "This role is an elevated privilege";
                        label: "Elevated privilege";
                        plural: "Elevated privileges";
                    },
                ];
            },
        >;
        federated_id: Typed<
            string,
            {
                attributes: { edge_encryption_enabled: true };
                label: "Federated Role ID";
                maxLength: 100;
            },
        >;
        grantable: Typed<
            boolean,
            {
                default: true;
                label: [
                    {
                        hint: "Can be granted independently";
                        label: "Grantable";
                        plural: "Grantables";
                    },
                ];
            },
        >;
        includes_roles: Typed<string, { array: true; label: "Includes roles" }>;
        name: Typed<string, { label: "Name"; maxLength: 100; unique: true }>;
        scoped_admin: Typed<
            boolean,
            {
                default: false;
                label: [
                    {
                        hint: "If this is an Application Administrator role";
                        label: "Application Administrator";
                        plural: "Application Administrators";
                    },
                ];
            },
        >;
        suffix: Typed<string, { label: "Suffix"; maxLength: 100 }>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    assignable_by: Typed<
        | string
        | ExplicitKey<"sys_user_role">
        | TableBrand<"sys_user_role">
        | Record<"sys_user_role">,
        {
            label: [
                {
                    hint: "If the related application has Scoped administration enabled, a user needs to have the 'Assignable By' role to be able to assign this role to another user";
                    label: "Assignable by";
                    plural: "Assignable by";
                },
            ];
            referenceQual: "javascript:if (gs.hasRole('admin')) 'sys_scope!=global'; else 'sys_scope=' + current.sys_scope;";
            referenceTable: "sys_user_role";
        },
    >
    can_delegate: Typed<
        boolean,
        {
            default: true;
            label: [
                {
                    hint: "Can be delegated";
                    label: "Can delegate";
                    plural: "Can delegates";
                },
            ];
        },
    >
    description: Typed<
        string,
        {
            attributes: { no_truncate: true };
            label: "Description";
            maxLength: 1000;
        },
    >
    elevated_privilege: Typed<
        boolean,
        {
            default: false;
            label: [
                {
                    hint: "This role is an elevated privilege";
                    label: "Elevated privilege";
                    plural: "Elevated privileges";
                },
            ];
        },
    >
    federated_id: Typed<
        string,
        {
            attributes: { edge_encryption_enabled: true };
            label: "Federated Role ID";
            maxLength: 100;
        },
    >
    grantable: Typed<
        boolean,
        {
            default: true;
            label: [
                {
                    hint: "Can be granted independently";
                    label: "Grantable";
                    plural: "Grantables";
                },
            ];
        },
    >
    includes_roles: Typed<string, { array: true; label: "Includes roles" }>
    name: Typed<string, { label: "Name"; maxLength: 100; unique: true }>
    scoped_admin: Typed<
        boolean,
        {
            default: false;
            label: [
                {
                    hint: "If this is an Application Administrator role";
                    label: "Application Administrator";
                    plural: "Application Administrators";
                },
            ];
        },
    >
    suffix: Typed<string, { label: "Suffix"; maxLength: 100 }>