> ## 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 Oracle Fusion HCM with OAuth 2.0 (Authorization Code) – StackOne Hub

> Link a Oracle Fusion HCM account in the StackOne Hub using OAuth 2.0 (Authorization Code). End-user guide to authorize the integration and start using Oracle Fusion HCM actions.

<Warning>You need the REST Server URL and Identity Cloud Service URL from your Oracle Cloud environment.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Find Your Oracle Cloud URLs</h2>

  <p>Collect the two URLs that identify your Oracle Fusion instance and identity domain.</p>

  <Steps>
    <Step title="Find the REST Server URL">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://cloud.oracle.com" target="_blank" rel="noopener noreferrer">Oracle Cloud account</a>. The REST Server URL is the base URL of your Oracle Fusion HCM instance.</p>

        <ul>
          <li>Format: `https://servername.fa.{datacenter}.oraclecloud.com`</li>
          <li>Example: `https://mycompany.fa.us2.oraclecloud.com`</li>
        </ul>
      </div>
    </Step>

    <Step title="Find the Identity Cloud Service URL">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to <strong>Identity & Security</strong> > <strong>Domains</strong> in the Oracle Cloud Console and select your identity domain.</p>

        <ul>
          <li>Copy the <strong>Domain URL</strong> (format `https://idcs-{identifier}.identity.oraclecloud.com`)</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Choose Your Scope</h2>

  <p>Provide the OAuth scope that grants access to your Fusion Applications resource.</p>

  <Steps>
    <Step title="Copy the Resource Scope">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to <strong>Identity & Security</strong> > <strong>Domains</strong> > select your domain > <strong>Applications</strong> > select your app > <strong>Token issuance policy</strong> and copy the configured scope.</p>

        <ul>
          <li>Format: `urn:opc:resource:fa:instanceid={instance_id}urn:opc:resource:consumer::all`</li>
          <li>Do not append `offline_access` - it is requested automatically</li>
        </ul>
      </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="/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>REST Server URL</strong></li>
        <li><strong>Identity Cloud Service URL</strong></li>
        <li><strong>Scope</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>
