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

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

> [!WARNING]
>
> Only system administrators can create OAuth client applications in NinjaOne. Ensure you have Admin privileges before starting.

## Register an OAuth Application in NinjaOne

Create an OAuth client application in the NinjaOne admin panel to obtain a Client ID and Client Secret.

**1. Sign in to NinjaOne**

Sign in to your [NinjaOne portal](https://app.ninjarmm.com) with administrator credentials.

**2. Navigate to API settings**

Go to **Configuration** → **Apps** → **API** → **Client App IDs** and click **Add** to create a new application.

**3. Configure the application**

Fill in the application details.

<ul>
  <li>**Application Type:** Select **Web** (server-side web application)</li>
  <li>**Name:** Enter a descriptive name (e.g., `StackOne Integration`)</li>
  <li>**Redirect URI:** Enter the **Callback URL** from your Connector Profile</li>
  <li>**Scopes:** Select **Monitoring** and **Management** (add **Control** if remote access is needed)</li>
  <li>**Grant Types:** Enable **Authorization Code** and **Refresh Token** (required for offline access)</li>
</ul>

**4. Save and copy credentials**

After saving, copy the **Client ID** and **Client Secret** displayed.

## Connect NinjaOne to StackOne

Enter your credentials in StackOne to authorize the connection.

**1. Enter your NinjaOne region**

Enter the region that matches your NinjaOne instance.

<ul>
  <li>`app` — United States (default)</li>
  <li>`us2` — United States 2</li>
  <li>`eu` — Europe</li>
  <li>`oc` — Oceania</li>
  <li>`ca` — Canada</li>
</ul>

**2. Enter Client ID and Client Secret**

Paste the **Client ID** and **Client Secret** from the NinjaOne application you created.

**3. Authorize the connection**

Click **Connect** and sign in with your NinjaOne account when prompted. Grant access to the requested scopes.

## Required Scopes

Select the OAuth scopes needed for your integration.

<ul>
  <li>**Monitoring** — Read access to devices, organizations, alerts, and monitoring data</li>
  <li>**Management** — Write access to modify devices, create organizations, run scripts, and manage policies</li>
  <li>**Control** — Remote access via API (only needed for remote control actions)</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).


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