> ## 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 SAP SuccessFactors with OAuth 2.0 (Client Credentials) – StackOne Hub

> Link a SAP SuccessFactors account in the StackOne Hub using OAuth 2.0 (Client Credentials). End-user guide to authorize the integration and start using SAP SuccessFactors actions.

> [!WARNING]
>
> Ensure you have Admin privileges for your SAP SuccessFactors account with the Manage Integration Tools > Manage OAuth2 Client Applications permission.

## Find your API Server

SAP SuccessFactors uses a different API server host for each data center. You look up the API server that corresponds to your tenant domain.

<ul>
  <li>Open the [List of SAP SuccessFactors API Servers](https://help.sap.com/docs/successfactors-platform/sap-successfactors-api-reference-guide-odata-v2/list-of-sap-successfactors-api-servers) and find your tenant domain in the table.</li>
  <li>If your data center is not listed, check [SAP note 2215682](https://userapps.support.sap.com/sap/support/knowledge/en/2215682), which needs an SAP for Me login.</li>
  <li>Copy the value in the **API Server** column and remove the trailing forward slash, then copy it across.</li>
  <li>Format: `https://api{datacenter}.{domain}`</li>
  <li>Example: if you sign in at `https://performancemanager4.successfactors.com`, your API server is `https://api4.successfactors.com`</li>
</ul>

## Find your username and Company ID

Your username and Company ID are both available from the account menu in the upper-right corner of SAP SuccessFactors.

**1. Copy your username**

Sign in to your SAP SuccessFactors instance.

<ul>
  <li>Select your profile image in the upper-right corner of the screen.</li>
  <li>In the account menu, your username is the value shown in parentheses next to your name. Copy it across.</li>
</ul>

![The SAP SuccessFactors account menu with the name and username in parentheses highlighted](https://mintcdn.com/stackone-60/krEtaqEZvHOWQWh6/connectors/sapsuccessfactors/images/custom-config-account-menu-username.png?fit=max\&auto=format\&n=krEtaqEZvHOWQWh6\&q=85\&s=748f9c2e05f6f62de0c0580797561677)

**2. Copy your Company ID**

In the account menu, select **Show version information**.

<ul>
  <li>In the **About SuccessFactors** dialog, locate and copy the **Company ID** across.</li>
</ul>

![The About SuccessFactors dialog with the Company ID row highlighted](https://mintcdn.com/stackone-60/krEtaqEZvHOWQWh6/connectors/sapsuccessfactors/images/custom-config-company-id.png?fit=max\&auto=format\&n=krEtaqEZvHOWQWh6\&q=85\&s=5d1d8d0a4e25d3e6205ad20dbbbe7d36)

## Register an OAuth2 client application

Register an OAuth2 client application in the Admin Center to obtain your API Key, X.509 certificate, and private key.

**1. Register a new client application**

In the top search bar, search for **Manage OAuth2 Client Applications** and select the matching result.

<ul>
  <li>Click **Register Client Application**.</li>
</ul>

![The Manage OAuth2 Client Applications page with the Register Client Application button highlighted](https://mintcdn.com/stackone-60/krEtaqEZvHOWQWh6/connectors/sapsuccessfactors/images/custom-config-register-client-application.png?fit=max\&auto=format\&n=krEtaqEZvHOWQWh6\&q=85\&s=1b344d3d877dd6bfc50eb894e41309d6)

**2. Enter the application details**

Enter an **Application Name** and an **Application URL**.

<ul>
  <li>**Application Name**: `StackOne Integration`</li>
  <li>**Application URL**: any valid URL, such as your company website</li>
</ul>

![The registration form with the Application Name and Application URL fields highlighted](https://mintcdn.com/stackone-60/krEtaqEZvHOWQWh6/connectors/sapsuccessfactors/images/custom-config-application-details.png?fit=max\&auto=format\&n=krEtaqEZvHOWQWh6\&q=85\&s=c7da45a179ca1c0d35e11c72733cc46d)

**3. Generate the X.509 certificate**

On the registration form, click **Generate X.509 Certificate**.

<ul>
  <li>**Common Name(CN)**: `StackOne OAuth2`</li>
  <li>Click **Generate**.</li>
</ul>

![The Self Assign a new X.509 Certificate form with the Common Name field and Generate button highlighted](https://mintcdn.com/stackone-60/krEtaqEZvHOWQWh6/connectors/sapsuccessfactors/images/custom-config-common-name.png?fit=max\&auto=format\&n=krEtaqEZvHOWQWh6\&q=85\&s=398eb1fde43eab4750d6bcc1fbe27ad1)

**4. Copy the X.509 certificate**

Copy the entire value shown in the **X.509 Certificate** box across.

![The registration form with the X.509 Certificate box highlighted and its value masked](https://mintcdn.com/stackone-60/krEtaqEZvHOWQWh6/connectors/sapsuccessfactors/images/custom-config-x509-certificate.png?fit=max\&auto=format\&n=krEtaqEZvHOWQWh6\&q=85\&s=5ed99c85c49e2b968f383d9f3fc5ecbb)

**5. Download the private key**

Click **Download** to save the file containing your private key.

<ul>
  <li>Open the file and copy only the text between `-----BEGIN ENCRYPTED PRIVATE KEY-----` and `-----END ENCRYPTED PRIVATE KEY-----`, excluding the markers themselves.</li>
  <li>Copy the **Private Key** across.</li>
</ul>

![The registration form with the Download button highlighted and the certificate value masked](https://mintcdn.com/stackone-60/krEtaqEZvHOWQWh6/connectors/sapsuccessfactors/images/custom-config-download-private-key.png?fit=max\&auto=format\&n=krEtaqEZvHOWQWh6\&q=85\&s=176c258118f8f29188d3c93b7867eeb4)

**6. Register the application**

Click **Register** to save the client application.

**7. Copy the API Key**

Open the application by clicking **View**. The **API Key** is displayed above the **X.509 Certificate**. Copy it across.

![The View OAuth Client Application screen with the API Key field highlighted and its value masked](https://mintcdn.com/stackone-60/krEtaqEZvHOWQWh6/connectors/sapsuccessfactors/images/custom-config-api-key.png?fit=max\&auto=format\&n=krEtaqEZvHOWQWh6\&q=85\&s=1e6d052398495ebb0c1b4767b4518e1f)

## Configure OData API permissions

Make sure the OData API entities you need are enabled for your instance.

<ul>
  <li>Navigate to **Admin Center** > **Company Settings** > **OData API Data Dictionary**.</li>
  <li>Verify that the entities you need — for example `Employee`, `Candidate`, `JobRequisition`, and `JobApplication` — are enabled for the OData API.</li>
  <li>Enable Upsert operations if you need to update records (optional, and not available in all instances).</li>
</ul>

## Find your Learning domain URL (optional)

Your Learning domain URL is required only for Learning or OCN actions, such as course import and completion tracking. This is the user-facing URL, not the API server URL. Leave the **Learning Domain URL** field blank if you only use HRIS actions.

<ul>
  <li>Navigate to the Learning module in SAP SuccessFactors and look at the URL in your browser's address bar.</li>
  <li>Copy the base URL (everything before `/learning`).</li>
  <li>Format: `https://{subdomain}.successfactors.com`</li>
  <li>Example: if your URL is `https://salesdemo8.successfactors.com/learning/admin`, your Learning domain URL is `https://salesdemo8.successfactors.com`</li>
  <li>Note: the Learning domain URL has no `api` prefix, unlike the API server URL.</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</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>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.