@servicenow/sdk - v4.7.0
    Preparing search index...

    Interface CrossScopePrivilege

    interface CrossScopePrivilege {
        $id: string | number | ExplicitKey<string>;
        $meta?: { installMethod?: "first install" | "demo" | "once" };
        $override?: Record<string, string | number | boolean>;
        operation: "read" | "delete" | "create" | "execute" | "write";
        protectionPolicy?: "read" | "protected";
        status: "requested" | "allowed" | "denied";
        target_name?: string;
        target_scope?: string;
        target_type?: "sys_db_object" | "sys_script_include" | "scriptable";
        targetName?: string;
        targetScope?: string;
        targetType?: "sys_db_object" | "sys_script_include" | "scriptable";
    }
    Index

    Properties

    $id: string | number | ExplicitKey<string>
    $meta?: { installMethod?: "first install" | "demo" | "once" }

    Type Declaration

    • OptionalinstallMethod?: "first install" | "demo" | "once"

      Map a record to an output folder that loads only in specific circumstances. 'first install' -> 'unload' (only loaded when plugin is first registered), 'demo' -> 'unload.demo' (only loaded when demo data is loaded), 'once' -> 'apply_once' (scripts that are only applied once)

    $override?: Record<string, string | number | boolean>

    Set properties not directly supported by this API.

    operation: "read" | "delete" | "create" | "execute" | "write"

    The operation being requested on the target.

    protectionPolicy?: "read" | "protected"

    Controls edit/view access for other developers after the application is installed.

    • read: Others can see the script logic but not change it.
    • protected: Others cannot change this record.
    • Omit to allow other developers to customize this record.
    status: "requested" | "allowed" | "denied"

    The authorization status of the privilege request. Can be 'requested', 'allowed', or 'denied'.

    target_name?: string

    The name of the table, script include, or script object being requested.

    target_scope?: string

    The application scope whose resources are being requested.

    target_type?: "sys_db_object" | "sys_script_include" | "scriptable"

    The type of target being requested

    targetName?: string

    The name of the table, script include, or script object being requested.

    targetScope?: string

    The application scope whose resources are being requested.

    targetType?: "sys_db_object" | "sys_script_include" | "scriptable"

    The type of target being requested