> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect ServiceNow with Basic Auth (Multiple Companies) – StackOne Hub

> Link a ServiceNow account in the StackOne Hub using Basic Auth (Multiple Companies). End-user guide to authorize the integration and start using ServiceNow actions.

> [!WARNING]
>
> You will need a ServiceNow account with admin privileges (or equivalent roles that can manage API Access Policies). Basic Auth must be allowed in two places: (1) a REST API Access Policy covering the Table API, and (2) the BasicAuth inbound authentication profile must be Active.

## Find your instance name

Your instance name is the subdomain of your ServiceNow URL, without `.service-now.com`.

<ul>
  <li>Format: `{your-instance}`</li>
  <li>Example: if your URL is `https://dev12345.service-now.com`, your instance name is `dev12345`</li>
  <li>Copy the **Instance Name** across.</li>
</ul>

## Configure the REST API Access Policy

The Table API needs a REST API Access Policy that allows Basic Auth.

**1. Find the Table API policy**

Sign in to your instance at `https://{your-instance}.service-now.com`.

<ul>
  <li>Click **All** in the top navigation bar.</li>
  <li>**Filter**: `rest api access`</li>
  <li>Open **System Web Services** > **API Access Policies** > **REST API Access Policies**.</li>
  <li>In the **API Access Policies** list, find the policy that covers the Table API. Policy names vary by ServiceNow release and instance, so identify it by its columns: **REST API** = **Table API** and **REST API PATH** = `now/table`.</li>
  <li>Depending on your ServiceNow release and instance configuration, this may be a single Table API policy or separate `Table GET API Access Policy` and `Table POST API Access Policy` records</li>
  <li>If no Table API policy exists, create one.</li>
</ul>

![API Access Policies list with the Table API policy row highlighted](https://mintcdn.com/stackone-60/PxdKfT_CpY1KhZQN/connectors/servicenow/images/basic_auth-config-policy-list-table-api.png?fit=max\&auto=format\&n=PxdKfT_CpY1KhZQN\&q=85\&s=10f406ed5dcd2d9a1adad9e6e86d88bd)

**2. Create a new policy only if none exists**

Create a policy only if the list has no Table API policy.

<ul>
  <li>Click **New**.</li>
  <li>**Name**: a name for the policy</li>
  <li>**Active**: leave checked</li>
  <li>**Global**: leave unchecked unless the policy should apply across all application scopes</li>
  <li>**REST API**: select **Table API** (**REST API PATH** auto-fills to `now/table`)</li>
  <li>**Apply to all methods**: checked</li>
  <li>**Apply to all resources**: checked</li>
  <li>**Apply to all versions**: checked</li>
  <li>**Apply to all tables**: checked</li>
  <li>**Advertise all auth schemes**: check it to allow Basic Auth alongside any explicit profiles, or leave it unchecked and add **BasicAuth for none public processors** under **Inbound authentication profiles** via **Insert a new row\...**</li>
  <li>Click **Submit**.</li>
</ul>

![New API Access Policy form with REST API set to Table API](https://mintcdn.com/stackone-60/PxdKfT_CpY1KhZQN/connectors/servicenow/images/basic_auth-config-new-policy-form.png?fit=max\&auto=format\&n=PxdKfT_CpY1KhZQN\&q=85\&s=92398ebe6ac560d34c1f6a5d189a01b5)

**3. Verify the policy is Active**

Open the Table API policy record and confirm **Active** is checked. Also confirm the coverage checkboxes are ticked - **Apply to all methods**, **Apply to all resources**, **Apply to all versions**, and **Apply to all tables**.

![Table API access policy record with the Active checkbox highlighted](https://mintcdn.com/stackone-60/PxdKfT_CpY1KhZQN/connectors/servicenow/images/basic_auth-config-policy-active.png?fit=max\&auto=format\&n=PxdKfT_CpY1KhZQN\&q=85\&s=9d1ad615a4a775f5cd501c3a3929a893)

**4. Confirm the policy allows Basic Auth**

On the same policy record, Basic Auth is allowed if either of the following is true. Click **Update** if you changed anything.

<ul>
  <li>**Advertise all auth schemes** is checked, or</li>
  <li>**BasicAuth for none public processors** appears in the **Inbound authentication profiles** related list.</li>
  <li>If it is missing, click **Insert a new row\...**.</li>
  <li>Pick **BasicAuth for none public processors**.</li>
  <li>Click **Update**.</li>
</ul>

![Inbound authentication profiles related list on the policy showing BasicAuth for none public processors](https://mintcdn.com/stackone-60/PxdKfT_CpY1KhZQN/connectors/servicenow/images/basic_auth-config-inbound-profiles-list.png?fit=max\&auto=format\&n=PxdKfT_CpY1KhZQN\&q=85\&s=6f6115de6f61d51e33fe4b5f86dc3fa0)

## Activate the BasicAuth Inbound Authentication Profile

ServiceNow ships a built-in inbound authentication profile named **BasicAuth for none public processors** that handles Basic Auth across all non-public REST endpoints.

**1. Find the BasicAuth profile**

In your ServiceNow instance, find the inbound authentication profile.

<ul>
  <li>Click **All** in the top navigation bar.</li>
  <li>**Filter**: `inbound auth`</li>
  <li>Open **System Web Services** > **API Access Policies** > **Inbound Authentication Profile**.</li>
  <li>In the **Authentication Profiles** list, look for the row named **BasicAuth for none public processors** (its **Apply to all none public processors** column reads true).</li>
</ul>

![Authentication Profiles list with BasicAuth for none public processors highlighted](https://mintcdn.com/stackone-60/PxdKfT_CpY1KhZQN/connectors/servicenow/images/basic_auth-config-auth-profiles-list.png?fit=max\&auto=format\&n=PxdKfT_CpY1KhZQN\&q=85\&s=4decb40706dcd52a0340946b24331787)

**2. Create the profile only if missing**

Create the profile only if the **Authentication Profiles** list does not have it.

<ul>
  <li>Click **New**.</li>
  <li>**What kind of authentication profile?**: select **Create standard http authentication profiles**</li>
  <li>**Name**: `BasicAuth for none public processors`</li>
  <li>**Active**: check it</li>
  <li>**Apply to all none public processors**: check it</li>
  <li>Click **Submit**.</li>
</ul>

![What kind of authentication profile page with Create standard http authentication profiles highlighted](https://mintcdn.com/stackone-60/PxdKfT_CpY1KhZQN/connectors/servicenow/images/basic_auth-config-profile-type-standard-http.png?fit=max\&auto=format\&n=PxdKfT_CpY1KhZQN\&q=85\&s=0072203d40e4854d746de0fcc5235d3a)

**3. Verify the profile is Active**

Open the record and confirm the **Type** field reads **Basic Auth**.

<ul>
  <li>If **Active** is unchecked, check it.</li>
  <li>Click **Update**.</li>
  <li>Leave **Apply to all none public processors** checked.</li>
</ul>

![BasicAuth for none public processors record with the Active checkbox highlighted](https://mintcdn.com/stackone-60/PxdKfT_CpY1KhZQN/connectors/servicenow/images/basic_auth-config-basicauth-profile-active.png?fit=max\&auto=format\&n=PxdKfT_CpY1KhZQN\&q=85\&s=d65eba7b1ff89c3c73cb7c899f0cf382)

## Find your username and password

The account must have roles that grant Table API access, such as admin or itil.

<ul>
  <li>Copy the **Username** across.</li>
  <li>Copy the **Password** across.</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/servicenow/guides/webhook-setup.md)
>
> Configure receiving Events for ServiceNow into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.