> ## 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 OAuth 2.0 (Multiple Companies) – StackOne Hub

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

> [!WARNING]
>
> Creating the integration requires the `admin`, `oauth_admin` or `mi_admin` role in your ServiceNow instance. If a REST API access policy restricts the Table API, add an OAuth authentication profile to that policy.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Create the OAuth integration

An OAuth integration in your own ServiceNow instance issues the Client ID and Client Secret.

**1. Start a new integration**

Sign in to your ServiceNow instance, then open **Machine Identity Console** > **Inbound integrations**.

<ul>
  <li>Click **New integration**.</li>
  <li>Select **OAuth - Authorization code grant**.</li>
</ul>

![The Select your application connection type dialog with OAuth - Authorization code grant highlighted](https://mintcdn.com/stackone-60/gLpoxUM6FS4jWkPG/connectors/servicenow/images/oauth2-setup-connection-type.png?fit=max\&auto=format\&n=gLpoxUM6FS4jWkPG\&q=85\&s=883b22477e5f73a7be89b99afaeb077c)

**2. Fill in the details**

In the **Details** section, enter the integration's name and redirect URL.

<ul>
  <li>**Name**: `StackOne Integration`</li>
  <li>**Provider name**: `StackOne`</li>
  <li>**Redirect URLs**: the **Callback URL** from your Connector Profile</li>
  <li>Leave **This is a public client** unchecked.</li>
</ul>

![The Details section with the Name, Provider name and Redirect URLs fields highlighted](https://mintcdn.com/stackone-60/gLpoxUM6FS4jWkPG/connectors/servicenow/images/oauth2-setup-details.png?fit=max\&auto=format\&n=gLpoxUM6FS4jWkPG\&q=85\&s=46bdc92e2336f48fc9347d1567c20a47)

**3. Set the auth scope and save**

Enables actions: Assign Role To User, Create Change Request, Create Department, Create Group, Create Incident, Create Knowledge Article, Create Knowledge Base, Create Knowledge Category, Create Location, Create Problem, Create Service Catalog Request, Create Service Catalog Request Item, Create Table, Create Table Field, Create Table Record, Create Task, Create User, Create Webhook, Delete Change Request, Delete Group, Delete Incident, Delete Knowledge Article, Delete Problem, Delete Service Catalog Request, Delete Service Catalog Request Item, Delete Table Record, Delete Task, Delete User, Delete Webhook, Get Change Request, Get Choice List, Get Department, Get Group, Get Incident, Get Knowledge Article, Get Knowledge Base, Get Knowledge Category, Get Location, Get Problem, Get Reference Qualifiers, Get Service Catalog Request, Get Service Catalog Request Item, Get Table Metadata, Get Table Record, Get Table Schema, Get Task, Get User, Get User Role, List Change Requests, List Departments, List Groups, List Incidents, List Knowledge Articles, List Knowledge Bases, List Knowledge Categories, List Locations, List Problems, List Service Catalog Request Items, List Service Catalog Requests, List Table Columns, List Table Records, List Tables, List Tasks, List User Role Assignments, List User Roles, List Users, List Webhooks, Update Change Request, Update Group, Update Incident, Update Knowledge Article, Update Problem, Update Service Catalog Request, Update Service Catalog Request Item, Update Table Record, Update Task, Update User

In the **Auth scope** section, choose the scope listed in the **Auth scope** field.

<ul>
  <li>Click **Save**.</li>
</ul>

![The Auth scope section with the useraccount scope selected in the Auth scope field](https://mintcdn.com/stackone-60/gLpoxUM6FS4jWkPG/connectors/servicenow/images/oauth2-setup-auth-scope.png?fit=max\&auto=format\&n=gLpoxUM6FS4jWkPG\&q=85\&s=cedfc798efa6d44be0bc1d6e7050d57e)

<ul>
  <li>
    useraccount
  </li>
</ul>

**4. Copy the credentials**

Open the saved integration from **Inbound integrations**. Copy the **Client ID** and **Client secret** across.

<ul>
  <li>Click the copy icon beside **Client secret** to copy it.</li>
</ul>

![The saved integration with the Client ID field and the Client secret copy button highlighted](https://mintcdn.com/stackone-60/gLpoxUM6FS4jWkPG/connectors/servicenow/images/oauth2-setup-credentials.png?fit=max\&auto=format\&n=gLpoxUM6FS4jWkPG\&q=85\&s=8626f5ff6b7c8b27622327e4b25b639c)

## Find your instance name

Your instance name is the first part of your ServiceNow URL. Copy it across.

<ul>
  <li>Format: `https://{instance}.service-now.com`</li>
  <li>Example: if your URL is `https://dev12345.service-now.com`, your **Instance Name** is `dev12345`</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.