<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question illegal access to package_private script include: caller not in rhino.global in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/illegal-access-to-package-private-script-include-caller-not-in/m-p/3520057#M6579</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 549px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/508885i5DC00D0AD4A3670A/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I cloned the client original widget (which is global) using scoped app "digital" so the new clone is scoped app.&lt;/P&gt;&lt;P&gt;I also updated the script to "global.SPCart" to make it callable.&lt;/P&gt;&lt;P&gt;when I test run it, the error above shows up.&lt;/P&gt;&lt;P&gt;I found out that the widget use a default script include that is "this app scope only" below&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/508886iEF2C9008044A8BD4/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't change the default SI so I will have to clone the code (which is not recommended)&lt;/P&gt;&lt;P&gt;the second option I find is to make a&amp;nbsp;&lt;SPAN&gt;Cross scope privilege but it doesnt work. Did I make it wrong? is there other way than clone the SI?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/508887iFDE7C150D48B4C16/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2026 09:47:56 GMT</pubDate>
    <dc:creator>hoathong99</dc:creator>
    <dc:date>2026-04-06T09:47:56Z</dc:date>
    <item>
      <title>illegal access to package_private script include: caller not in rhino.global</title>
      <link>https://www.servicenow.com/community/community-central-forum/illegal-access-to-package-private-script-include-caller-not-in/m-p/3520057#M6579</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 549px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/508885i5DC00D0AD4A3670A/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I cloned the client original widget (which is global) using scoped app "digital" so the new clone is scoped app.&lt;/P&gt;&lt;P&gt;I also updated the script to "global.SPCart" to make it callable.&lt;/P&gt;&lt;P&gt;when I test run it, the error above shows up.&lt;/P&gt;&lt;P&gt;I found out that the widget use a default script include that is "this app scope only" below&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/508886iEF2C9008044A8BD4/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't change the default SI so I will have to clone the code (which is not recommended)&lt;/P&gt;&lt;P&gt;the second option I find is to make a&amp;nbsp;&lt;SPAN&gt;Cross scope privilege but it doesnt work. Did I make it wrong? is there other way than clone the SI?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/508887iFDE7C150D48B4C16/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 09:47:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/illegal-access-to-package-private-script-include-caller-not-in/m-p/3520057#M6579</guid>
      <dc:creator>hoathong99</dc:creator>
      <dc:date>2026-04-06T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: illegal access to package_private script include: caller not in rhino.global</title>
      <link>https://www.servicenow.com/community/community-central-forum/illegal-access-to-package-private-script-include-caller-not-in/m-p/3520172#M6581</link>
      <description>&lt;P&gt;The cross-scope privilege record has the &lt;STRONG&gt;wrong Source Scope&lt;/STRONG&gt;. Looking at your screenshot, the Source Scope is set to &lt;STRONG&gt;"CI Guided Setup"&lt;/STRONG&gt;, but it should be set to your scoped app &lt;STRONG&gt;"digital"&lt;/STRONG&gt; — that's the app that's trying to call SPCart, so it needs to be the one granted the privilege.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 12:35:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/illegal-access-to-package-private-script-include-caller-not-in/m-p/3520172#M6581</guid>
      <dc:creator>Naveen20</dc:creator>
      <dc:date>2026-04-06T12:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: illegal access to package_private script include: caller not in rhino.global</title>
      <link>https://www.servicenow.com/community/community-central-forum/illegal-access-to-package-private-script-include-caller-not-in/m-p/3520189#M6582</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/940529"&gt;@hoathong99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the script include is already accessible only from Global so you can't make it call from outside even with cross scope&lt;/P&gt;
&lt;P&gt;Also you can't change the Accessible all setting on that script include since it's OOTB&lt;/P&gt;
&lt;P&gt;better create a new script include, same code in Global scope, make it accessible from All scopes and then call that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 12:53:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/illegal-access-to-package-private-script-include-caller-not-in/m-p/3520189#M6582</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-04-06T12:53:05Z</dc:date>
    </item>
  </channel>
</rss>

