> ## 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.

# NinjaOne OAuth 2.0 (Authorization Code) connector profile – StackOne setup guide

> Set up the OAuth 2.0 (Authorization Code) connector profile for NinjaOne in StackOne. One-time admin setup required before your users can link NinjaOne accounts via Hub.

<Warning>Only system administrators can create OAuth client applications in NinjaOne. Ensure you have Admin privileges before starting.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Register an OAuth Application in NinjaOne</h2>

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

  <Steps>
    <Step title="Sign in to NinjaOne">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://app.ninjarmm.com" target="_blank" rel="noopener noreferrer">NinjaOne portal</a> with administrator credentials.</p>
      </div>
    </Step>

    <Step title="Navigate to API settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Go to <strong>Configuration</strong> → <strong>Apps</strong> → <strong>API</strong> → <strong>Client App IDs</strong> and click <strong>Add</strong> to create a new application.</p>
      </div>
    </Step>

    <Step title="Configure the application">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Fill in the application details.</p>

        <ul>
          <li><strong>Application Type:</strong> Select <strong>Web</strong> (server-side web application)</li>
          <li><strong>Name:</strong> Enter a descriptive name (e.g., `StackOne Integration`)</li>
          <li><strong>Redirect URI:</strong> Enter `https://api.stackone.com/connect/oauth2/ninjaone/callback`</li>
          <li><strong>Scopes:</strong> Select <strong>Monitoring</strong> and <strong>Management</strong> (add <strong>Control</strong> if remote access is needed)</li>
          <li><strong>Grant Types:</strong> Enable <strong>Authorization Code</strong> and <strong>Refresh Token</strong> (required for offline access)</li>
        </ul>
      </div>
    </Step>

    <Step title="Save and copy credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>After saving, copy the <strong>Client ID</strong> and <strong>Client Secret</strong> displayed. Store the Client Secret securely — it is shown only once.</p>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Connect NinjaOne to StackOne</h2>

  <p>Enter your credentials in StackOne to authorize the connection.</p>

  <Steps>
    <Step title="Enter your NinjaOne region">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Enter the region that matches your NinjaOne instance.</p>

        <ul>
          <li>`app` — United States (default)</li>
          <li>`eu` — Europe</li>
          <li>`oc` — Oceania</li>
        </ul>
      </div>
    </Step>

    <Step title="Enter Client ID and Client Secret">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Paste the <strong>Client ID</strong> and <strong>Client Secret</strong> from the NinjaOne application you created.</p>
      </div>
    </Step>

    <Step title="Authorize the connection">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Connect</strong> and sign in with your NinjaOne account when prompted. Grant access to the requested scopes.</p>
      </div>
    </Step>
  </Steps>
</section>

## Creating the StackOne Connector Profile

To create the Connector Profile in StackOne for <strong>NinjaOne</strong>:

<Steps>
  <Step title="Navigate to Connector Profiles">
    Login to StackOne and navigate to [Connector Profiles](https://app.stackone.com/connector_profiles)
  </Step>

  <Step title="Create New Connector Profile">
    <ul>
      <li>Click <strong>+ Connector Profile</strong></li>
      <li>Search for and select <strong>NinjaOne</strong></li>
      <li>Select <strong>Type</strong> as <strong>OAuth 2.0 (Authorization Code)</strong></li>
      <li>(Optional) Select <strong>Actions</strong> to be enabled for this Connector Profile</li>
      <li>Click <strong>Create profile</strong></li>
    </ul>
  </Step>
</Steps>

Congratulations! The new Connector Profile will now show up in your project ready to be used. You can now continue to <a href="/connect/managing-connectors/linking-accounts">Link Accounts</a> for <strong>NinjaOne</strong>.
