<?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 Re: User 'system' can not execute Authenticated Scripted REST API ? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2674155#M1036676</link>
    <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/486473"&gt;@sieusaopolo15&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please accept my answer as solution, if it helped you to fix your issue.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise please let me know if you need more help.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2023 05:27:14 GMT</pubDate>
    <dc:creator>AnveshKumar M</dc:creator>
    <dc:date>2023-09-18T05:27:14Z</dc:date>
    <item>
      <title>User 'system' can not execute Authenticated Scripted REST API ?</title>
      <link>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2673678#M1036534</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;When I'm using scheduled data import, I set the 'Run as' field as blank and job is executed as 'system' but there is an strange thing happened is that my "Import Set" was cancelled during the import.&amp;nbsp; And I've found out the root cause is the REST API authentication is blocking the import set. Below here is my Scripted REST API Security:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sieusaopolo15_0-1694868765548.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/289347iF01CBD01C95C477D/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/289347iF01CBD01C95C477D/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="sieusaopolo15_0-1694868765548.png" alt="sieusaopolo15_0-1694868765548.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; After turned it off, the scheduled data import could run normally. Is my understanding for user 'system' should have access to everything is not correct ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Scheduled Data Import:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sieusaopolo15_1-1694868927689.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/289348i44E8DABB2321B47E/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/289348i44E8DABB2321B47E/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="sieusaopolo15_1-1694868927689.png" alt="sieusaopolo15_1-1694868927689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Import set log:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sieusaopolo15_0-1694869121400.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/289349i061D99AF56BFA5CD/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/289349i061D99AF56BFA5CD/image-size/medium?v=v2&amp;amp;px=400 1.0x" role="button" title="sieusaopolo15_0-1694869121400.png" alt="sieusaopolo15_0-1694869121400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 13:01:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2673678#M1036534</guid>
      <dc:creator>sieusaopolo15</dc:creator>
      <dc:date>2023-09-16T13:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: User 'system' can not execute Authenticated Scripted REST API ?</title>
      <link>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2673733#M1036546</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/486473"&gt;@sieusaopolo15&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Are you trying to import data from another ServiceNow instance?&lt;/P&gt;
&lt;P&gt;The issue is not with run as user, it is with the authentication credentials you are using to authenticate REST API, check the credentials you are using while calling the REST API if it's Basic Auth, oAuth token validity if it's oAuth type authentication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 15:42:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2673733#M1036546</guid>
      <dc:creator>AnveshKumar M</dc:creator>
      <dc:date>2023-09-16T15:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: User 'system' can not execute Authenticated Scripted REST API ?</title>
      <link>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2674155#M1036676</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/486473"&gt;@sieusaopolo15&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please accept my answer as solution, if it helped you to fix your issue.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise please let me know if you need more help.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 05:27:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2674155#M1036676</guid>
      <dc:creator>AnveshKumar M</dc:creator>
      <dc:date>2023-09-18T05:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: User 'system' can not execute Authenticated Scripted REST API ?</title>
      <link>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2674159#M1036679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/394006"&gt;@AnveshKumar M&lt;/a&gt;&amp;nbsp;, You are correct Anvesh, my scripted rest API needs basic authentication info or access token to execute the API so in the REST Action of Data Source I'm only need to add Authorization at the header and the problem is solved. Thanks !&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 05:31:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/user-system-can-not-execute-authenticated-scripted-rest-api/m-p/2674159#M1036679</guid>
      <dc:creator>sieusaopolo15</dc:creator>
      <dc:date>2023-09-18T05:31:03Z</dc:date>
    </item>
  </channel>
</rss>

