> ## 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 Azure DevOps with Personal Access Token – StackOne Hub

> Link a Azure DevOps account in the StackOne Hub using Personal Access Token. End-user guide to authorize the integration and start using Azure DevOps actions.

<Warning>PATs grant access based on your Azure DevOps permissions. Keep them secure and use the minimum required scopes.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Generate a Personal Access Token</h2>

  <p>Create a PAT to enable API access with your Azure DevOps account.</p>

  <Steps>
    <Step title="Navigate to PAT settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to <a href="https://dev.azure.com" target="_blank" rel="noopener noreferrer">Azure DevOps</a> and access your user settings.</p>

        <ul>
          <li>Note: the link redirects to the Microsoft Entra admin center after sign-in — use the menu (app launcher) in the top-left to navigate to Azure DevOps.</li>
          <li>Click the <strong>User settings</strong> icon (person with gear) in the top-right corner.</li>
          <li>Select <strong>Personal access tokens</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Create a new token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Generate a new Personal Access Token.</p>

        <ul>
          <li>Click <strong>New Token</strong>.</li>
          <li>Enter a <strong>Name</strong> (e.g., StackOne Integration).</li>
          <li>Select your <strong>Organization</strong> from the dropdown.</li>
          <li>Set the <strong>Expiration</strong> date.</li>
          <li>Under <strong>Scopes</strong>, select <strong>Full access</strong> or choose specific scopes.</li>
          <li>Click <strong>Create</strong>.</li>
          <li>Copy the token immediately and store securely — it is only shown once.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find your organization name</h2>

  <p>Your Azure DevOps organization name is part of your Azure DevOps URL.</p>

  <ul>
    <li>Sign in to <a href="https://dev.azure.com" target="_blank" rel="noopener noreferrer">Azure DevOps</a>. Note: the link redirects to the Microsoft Entra admin center after sign-in — use the menu (app launcher) in the top-left to navigate to Azure DevOps.</li>
    <li>Your URL format is: `https://dev.azure.com/{organization}`</li>
    <li>Example: if your URL is `https://dev.azure.com/contoso`, your organization is `contoso`</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>Personal Access Token</strong></li>
        <li><strong>Organization</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>
