<h2>Cross-scope privilege record</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Cross-scope privilege record" /><meta name="abstract" content="Runtime access tracking uses cross-scope privilege records to determine which script operations and targets the system allows to run." /><meta name="description" content="Runtime access tracking uses cross-scope privilege records to determine which script operations and targets the system allows to run." /><meta name="DC.subject" content="applications, runtime access, script access" /><meta name="keywords" content="applications, runtime access, script access" /><meta name="DC.relation" scheme="URI" content="../../../build/applications/reference/r_ApplicationDesignAndRuntimeSettings.html" /><meta name="DC.relation" scheme="URI" content="../../../build/custom-application/concept/build-applications.html" /><meta name="DC.relation" scheme="URI" content="../../../build/custom-application/concept/getting-started-with-building-applications.html" /><meta name="DC.relation" scheme="URI" content="../../../build/applications/concept/c_ContextualDevelopmentEnvironment.html" /><meta name="DC.relation" scheme="URI" content="../../../build/applications/concept/c_ApplicationAccessSettings.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-08-01" /><meta name="page-type" content="app-engine" /><meta name="page-type" content="platform" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="c_CrossScopePrivilegeRecord" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Cross-scope privilege record</title></head><body id="c_CrossScopePrivilegeRecord"> <div class="breadcrumb"><a class="link" href="../../../build/custom-application/concept/build-applications.html" title="Learn how to become an application developer using ServiceNow AI Platform low-code tools. Start with what you know and use a library of reusable components and published applications to modernize your legacy processes.">Building applications</a> > <a class="link" href="../../../build/custom-application/concept/getting-started-with-building-applications.html" title="Using the ServiceNow Creator Workflow products, you can create intuitive experiences that run on the powerful ServiceNow AI Platform.">Learning about developing on the ServiceNow AI Platform</a> > <a class="link" href="../../../build/applications/concept/c_ContextualDevelopmentEnvironment.html" title="The platform is a contextual development environment that displays the currently selected application, identifies the scope of every application artifact, and prevents any changes that violate the access settings for an application.">Contextual development environment</a> > <a class="link" href="../../../build/applications/concept/c_ApplicationAccessSettings.html" title="Application access settings determine whether one application can access resources from another application.">Application access settings</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Cross-scope privilege record</h1> <div class="body conbody"><p class="shortdesc">Runtime access tracking uses cross-scope privilege records to determine which script operations and targets the system allows to run.</p> <div class="p">The system creates cross-scope privilege records when:<ul class="ul" id="c_CrossScopePrivilegeRecord__ul_sgr_5b5_jv"><li class="li">Runtime access tracking is set to <span class="ph uicontrol">Tracking</span> or <span class="ph uicontrol">Enforcing</span>.</li><li class="li">A script attempts to access another application.</li></ul> </div> <p class="p">Each cross-scope privilege record in the Cross scope privileges [sys_scope_privilege] table contains the following information.</p> <div class="p"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="c_CrossScopePrivilegeRecord__table_q2b_hc5_jv" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Cross-scope privilege fields</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d358118e88">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d358118e91">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e88 ">Source Scope</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e91 ">The application requesting runtime access to another application's resources.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e88 ">Target Scope</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e91 ">The application whose resources are being requested.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e88 ">Target Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e91 ">The name of the table, script include, or script object being requested.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e88 ">Target Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e91 ">The type of request: table, script include, or script object.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e88 ">Operation</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e91 ">The operation the script performs on the target. The target type determines the available operations. Tables support the read, write, create, and delete operations. Script includes and script objects only support the execute API operation.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e88 ">Status</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e91 ">The authorization for this record: requested, allowed, or denied</td></tr></tbody></table> </div> </div> <p class="p">Administrators can manually create cross-scope privilege records for application developers in advance to communicate which cross-scope resources they expect developers to access. For example, administrators could create these cross-scope privilege records to permit application developers access to resources from Incident Management.</p> <div class="p"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="c_CrossScopePrivilegeRecord__table_scv_kj5_jv" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 2. </span>Sample cross-scope privilege records</span></caption><colgroup><col /><col /><col /><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d358118e182">Source Scope</th><th class="entry cellrowborder" style="vertical-align:top;" id="d358118e185">Target Scope</th><th class="entry cellrowborder" style="vertical-align:top;" id="d358118e188">Target Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d358118e191">Operation</th><th class="entry cellrowborder" style="vertical-align:top;" id="d358118e194">Status</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e182 ">My App</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e185 ">Global</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e188 ">incident</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e191 ">Read</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e194 ">Allowed</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e182 ">My App</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e185 ">Global</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e188 ">incident</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e191 ">Write</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e194 ">Allowed</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e182 ">My App</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e185 ">Global</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e188 ">ScopedGlideRecord</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e191 ">Execute API</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d358118e194 ">Allowed</td></tr></tbody></table> </div> </div> <div class="p">During testing, application developers should run all of their application scripting logic to ensure the system creates any necessary cross-scope privilege records. After application publication, the system only allows runtime requests to run that have a valid cross-scope privilege record.<div class="note"><span class="notetitle">Note:</span> Table privilege granting is limited to, at most, the permissions set on the table object (sys_db_object) record. For example, granting a scope privilege to delete for table incident would not be allowed if the table object for incident did not allow Can delete scopes.</div> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../build/applications/reference/r_ApplicationDesignAndRuntimeSettings.html" title="The application design and runtime settings determine whether an application can access cross-scope resources.">Application design and runtime settings</a></div> </div> </div></body></html></div>