<?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 Need Help Securing a Public Scripted REST API (GET) in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333185#M3937</link>
    <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hello Community,&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I've created a Scripted REST API (GET method) in ServiceNow that generates a payment link. Currently, it’s publicly accessible, but this approach lacks proper security.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;When I try to secure it using ACL authentication, I receive an “Invalid Request” or “Forbidden Access” error. My goal is to &lt;STRONG&gt;enable authentication&lt;/STRONG&gt; but still &lt;STRONG&gt;allow access to users who are not in the ServiceNow user table&lt;/STRONG&gt; (i.e., unauthenticated external users).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Is there a recommended way to securely expose this API to external/non-ServiceNow users while preventing unauthorized access?&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in advance for your guidance!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;daiva&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 09:39:26 GMT</pubDate>
    <dc:creator>daiva</dc:creator>
    <dc:date>2025-07-24T09:39:26Z</dc:date>
    <item>
      <title>Need Help Securing a Public Scripted REST API (GET)</title>
      <link>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333185#M3937</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hello Community,&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I've created a Scripted REST API (GET method) in ServiceNow that generates a payment link. Currently, it’s publicly accessible, but this approach lacks proper security.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;When I try to secure it using ACL authentication, I receive an “Invalid Request” or “Forbidden Access” error. My goal is to &lt;STRONG&gt;enable authentication&lt;/STRONG&gt; but still &lt;STRONG&gt;allow access to users who are not in the ServiceNow user table&lt;/STRONG&gt; (i.e., unauthenticated external users).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Is there a recommended way to securely expose this API to external/non-ServiceNow users while preventing unauthorized access?&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in advance for your guidance!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;daiva&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 09:39:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333185#M3937</guid>
      <dc:creator>daiva</dc:creator>
      <dc:date>2025-07-24T09:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Securing a Public Scripted REST API (GET)</title>
      <link>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333197#M3938</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/704709"&gt;@daiva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not possible without using user from user table&lt;/P&gt;
&lt;P&gt;Every authentication happens via sys_user record only.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 09:56:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333197#M3938</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-07-24T09:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Securing a Public Scripted REST API (GET)</title>
      <link>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333262#M3939</link>
      <description>&lt;P&gt;Requirement is bit confusing. You want to authenticate the users but also expose it to non-ServiceNow users. Both statements are contradictory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can tell the exact use case that how you differentiating external user from public users?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 10:55:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333262#M3939</guid>
      <dc:creator>Pranesh072</dc:creator>
      <dc:date>2025-07-24T10:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Securing a Public Scripted REST API (GET)</title>
      <link>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333366#M3940</link>
      <description>&lt;P&gt;I’ve developed a Scripted REST API (GET method) in ServiceNow that serves a payment link and is intended to be accessed by external users (non-authenticated/guest users). To make this publicly accessible, I’ve currently exposed the endpoint without authentication. However, this creates a security concern — and makes the integration non-compliant for Store publishing.&lt;/P&gt;&lt;P&gt;When I try enabling ACL-based authentication or use basic auth, it blocks access for guest users with errors like "Forbidden" or "Invalid Request."&lt;/P&gt;&lt;P&gt;My requirement is:&lt;/P&gt;&lt;P&gt;The API should be secure enough to meet Store submission standards.&lt;/P&gt;&lt;P&gt;It must still be accessible to external guest users (not in the sys_user table).&lt;/P&gt;&lt;P&gt;Ideally, without creating a ServiceNow user for every consumer.&lt;/P&gt;&lt;P&gt;Has anyone implemented a similar setup or can suggest a secure and compliant pattern for exposing REST APIs to guest users?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 12:06:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333366#M3940</guid>
      <dc:creator>daiva</dc:creator>
      <dc:date>2025-07-24T12:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Securing a Public Scripted REST API (GET)</title>
      <link>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333428#M3943</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/704709"&gt;@daiva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My thoughts&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;Public, unauthenticated endpoints are generally non-compliant with ServiceNow Store requirements&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2)&amp;nbsp;By default, Scripted REST APIs are protected using Access Control Lists (ACLs), which require users to be authenticated (users must exist in the sys_user table)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 12:49:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/need-help-securing-a-public-scripted-rest-api-get/m-p/3333428#M3943</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-07-24T12:49:20Z</dc:date>
    </item>
  </channel>
</rss>

