@servicenow/sdk - v4.4.1
    Preparing search index...
    Role: {
        $id?: Now.Internal.ExplicitKey | string | number;
        description?: string;
        grantable?: boolean;
        name: string;
    } & canDelegate & assignableBy & elevatedPrivilege & scopedAdmin & containsRoles

    Creates a new Role (sys_user_role)

    Type Declaration

    • Optional$id?: Now.Internal.ExplicitKey | string | number

      Role IDs are now derived from Role.name. The explicit $id is no longer used.

    • Optionaldescription?: string

      A description of what the role can access.

    • Optionalgrantable?: boolean

      Indicates whether the role can be granted independently.

    • name: string

      Name for the role beginning with the application scope in the format: <scope>.<name>.

    an object containing the following properties:

    • name - name for the role beginning with the application scope in the following format: <scope>.<name>.
    • assignableBy? - other roles that can assign this role to users.
    • canDelegate? - indicates if the role can be delegated to other users.
    • containsRoles? - variable identifiers of other Role objects that this role contains.
    • description? - a description of what the role can access.
    • elevatedPrivilege? - indicates whether manually accepting the responsibility of using the role before you can access the features of the role is required.
    • grantable? - indicates whether the role can be granted independently
    • scopedAdmin? - indicates whether the role is an Application Administrator role.