> ## 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 Twilio with OAuth 2.0 (Organizations API) – StackOne Hub

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

<Warning>Twilio's SCIM Users API (used by unified\_list\_users / unified\_get\_user) is documented by Twilio as using the OAuth 2.0 Authorization Code grant, while this auth method uses Client Credentials. Client Credentials is confirmed to work for the Role and RoleAssignment APIs (unified\_list\_roles, unified\_get\_role, and the roles expand on unified\_get\_user); its compatibility with the SCIM Users API has not been confirmed against a live tenant.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Locate your Organization SID</h2>

  <p>Sign in to the <a href="https://www.twilio.com/console" target="_blank" rel="noopener noreferrer">Twilio Console</a>. Open the Admin drop-down menu and click <strong>Organization > Twilio Admin</strong>. Your Organization SID (starts with `OR`) is shown on the Twilio Admin page.</p>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Create an OAuth App</h2>

  <p>In Twilio Console, navigate to <strong>Settings > Organization settings > Organization API access</strong> and click <strong>Create OAuth application</strong>. Select the Client Credentials grant type. On the scopes step, grant the permissions this connector's actions need: `twilio/iam/roles/list` (unified\_list\_roles, unified\_get\_role), `twilio/iam/role-assignments/list` (unified\_get\_user's roles expand). Copy the generated Client ID and Client Secret.</p>

  <ul>
    <li>Client Secret is shown only once — store it securely.</li>
  </ul>
</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="/guides/accounts-section#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>Organization SID</strong></li>
        <li><strong>Client ID</strong></li>
        <li><strong>Client Secret</strong></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="/guides/accounts-section">Accounts</a> page.</p>
</div>
