> ## 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 Envi with OAuth 2.0 (Password Grant) – StackOne Hub

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

<section data-guide-section data-guide-scopes="">
  <h2>Choose your Envi environment</h2>

  <p>Pick the Envi environment this connection should talk to.</p>

  <ul>
    <li>Select <strong>Production</strong> to connect to the live Envi application.</li>
    <li>Select <strong>Demo</strong> only if you were specifically given a demo or evaluation tenant.</li>
    <li>The two are separate systems with separate data and separate credentials — a Production user name will not authenticate against Demo.</li>
  </ul>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Use a dedicated integration user</h2>

  <p>Envi authorizes by role, so the connection can only read and write what the signed-in user's role permits.</p>

  <Steps>
    <Step title="Choose the account to connect as">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to Envi and confirm which account you want the integration to act as. A dedicated integration user is recommended, so that a person changing role or leaving the organization does not silently break the connection. If an action later returns a permissions error, the fix is to widen that user's Envi role — reconnecting will not help.</p>
      </div>
    </Step>

    <Step title="Enter the credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Enter that user's <strong>Username</strong> and <strong>Password</strong> below. These are the same credentials used to sign in to the Envi application. There is no API key or client secret to create — Envi does not require registering a developer app.</p>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find your Organization Number (optional)</h2>

  <p>Only needed when the account can access more than one Envi organization.</p>

  <Steps>
    <Step title="Look up the Organization ID">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Leave <strong>Organization Number</strong> blank to connect to the account's default organization. To target a specific one, in Envi go to <strong>Organization</strong> > <strong>My Organization Details</strong> and copy the value of the <strong>Organization ID</strong> field.</p>
      </div>
    </Step>

    <Step title="One organization per connection">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>The organization is fixed at the moment the connection is created, so one linked account maps to exactly one Envi organization. To integrate a second organization, create a second linked account.</p>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/connect/managing-connectors/linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Environment</strong></li>
        <li><strong>Username</strong></li>
        <li><strong>Password</strong></li>
        <li><strong>Organization Number</strong> (Optional)</li>
        <li><strong>Client ID</strong> (Optional)</li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></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>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/gateway/concepts/linked-accounts">Accounts</a> page.</p>
</div>
