> ## 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 SAP Cloud Identity Services — OAuth 2.0 (Multiple Companies) – StackOne Hub

> Link a SAP SuccessFactors account in the StackOne Hub using SAP Cloud Identity Services — OAuth 2.0 (Multiple Companies). End-user guide to authorize the integration and start using SAP SuccessFactors actions.

> [!WARNING]
>
> Your SAP SuccessFactors instance must use SAP Cloud Identity Services as its authentication provider, and you need administrator access to its administration console. Each person who connects signs in with their own account, which must exist in both SAP Cloud Identity Services and SAP SuccessFactors.

## Setting up the client in SAP Cloud Identity Services

The client is an OpenID Connect application in the SAP Cloud Identity Services tenant your SAP SuccessFactors instance signs in with. Create a dedicated application for this connection method, separate from any application used for client credentials.

**1. Create the application**

Sign in to the administration console of your SAP Cloud Identity Services tenant, then open **Applications & Resources** > **Applications**.

<ul>
  <li>Click **Create**.</li>
  <li>**Display Name**: `StackOne Integration`</li>
  <li>**Protocol Type**: **OpenID Connect**</li>
  <li>Click **Create**.</li>
  <li>Copy the **Identity Authentication Host** across. It is your tenant name followed by `.accounts.ondemand.com`, without `https://`, even when your administration console opens on `accounts.cloud.sap`.</li>
  <li>Format: `{tenant}.accounts.ondemand.com`</li>
  <li>Example: if your administration console is `https://example.accounts.cloud.sap/admin`, your Identity Authentication Host is `example.accounts.ondemand.com`</li>
</ul>

![Create Application dialog with the display name, the OpenID Connect protocol and the Create button highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/sapsuccessfactors/images/ias_oauth2-setup-create-application.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=43dda29054e9c21e592c09be48cf4e06)

**2. Name the OpenID Connect configuration**

On the **Trust** tab, under **Single Sign-On**, choose **OpenID Connect Configuration**.

<ul>
  <li>Click **Configure**.</li>
  <li>**Name**: `StackOne-Integration`</li>
  <li>The name can't contain spaces and must be unique in the tenant.</li>
  <li>Click **Add**.</li>
</ul>

![Add Name dialog with the configuration name and the Add button highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/sapsuccessfactors/images/ias_oauth2-setup-name-configuration.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=d31fb728e287aa89b469c0bb714ea9ff)

**3. Set the callback URL**

Open the **URIs** tab of the configuration.

<ul>
  <li>Under **Redirect**, click **Add**.</li>
  <li>Enter the **Callback URL** from your Connector Profile.</li>
  <li>Click **Save**.</li>
</ul>

![Redirect URIs list with the StackOne callback URL and the Add button highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/sapsuccessfactors/images/ias_oauth2-setup-redirect-uri.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=74ff4263cdb87c8b71ed9bc785070b03)

**4. Allow only the sign-in grant types**

Open the **Authentication** tab of the configuration. New applications allow several grant types, and this connection needs only the sign-in ones.

<ul>
  <li>Next to **Grant Types**, click **Edit**.</li>
  <li>Keep **Authorization Code**, **Refresh** and **JWT Bearer** selected.</li>
  <li>Select **Enforce PKCE (S256)**.</li>
  <li>Clear every other grant type, including **Password** and **Client Credentials**.</li>
  <li>Click **Save**.</li>
</ul>

![Grant Types editor with Authorization Code, Enforce PKCE, Refresh and JWT Bearer selected and the Save button highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/sapsuccessfactors/images/ias_oauth2-setup-grant-types.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=fc40a6429c59c65bae5d18480da30e2d)

**5. Set the token policy**

The token policy is under **Authentication Policy** on the same **Authentication** tab.

<ul>
  <li>Click **Edit**.</li>
  <li>Under **Advanced Settings**, set **Refresh Token Usage After Renewal** to **Online scenarios**.</li>
  <li>Click **Save**.</li>
</ul>

![Authentication Policy editor with Refresh Token Usage After Renewal set to Online scenarios and the Save button highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/sapsuccessfactors/images/ias_oauth2-setup-token-policy.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=c5fd047e16bde1ad1febafe163c35123)

**6. Add the SAP SuccessFactors dependency**

On the **Trust** tab, under **Application APIs**, choose **Dependencies**.

<ul>
  <li>Click **Add**.</li>
  <li>**Dependency Name**: `SF_ALL`</li>
  <li>**Application**: your SAP SuccessFactors application</li>
  <li>**API**: **All APIs**</li>
  <li>Click **Save**.</li>
  <li>Copy the **Dependency Name** across.</li>
</ul>

![Add API dialog with the dependency name, the SAP SuccessFactors application, the All APIs option and the Save button highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/sapsuccessfactors/images/ias_oauth2-setup-dependency.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=7a78fa3b64e29b80841303652234219e)

**7. Create the client secret**

On the **Trust** tab, under **Application APIs**, choose **Client Authentication**.

<ul>
  <li>In the **Secrets** section, click **Add**.</li>
  <li>**Description**: `Integration with StackOne`</li>
  <li>**Expire in**: the period that suits your rotation policy</li>
  <li>**API Access**: **OpenID**</li>
  <li>Click **Save**.</li>
  <li>Copy the **Client ID** across.</li>
  <li>Copy the **Client Secret** across. It is only displayed once and can't be retrieved later.</li>
</ul>

![Client Credentials dialog with the copy buttons for the Client ID and the masked Client Secret highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/sapsuccessfactors/images/ias_oauth2-setup-client-credentials.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=984281f32d40b6402fd887985951bdf6)

**8. Check principal propagation**

In **Applications & Resources** > **Applications**, select your SAP SuccessFactors application and choose **Provided APIs**.

<ul>
  <li>Check that **Allow all APIs for principal propagation** is selected. It is selected on the application that SAP creates for SAP SuccessFactors.</li>
</ul>

![Provided APIs of the SAP SuccessFactors application with Allow all APIs for principal propagation highlighted](https://mintcdn.com/stackone-60/WDnFpltAJ0dztN5o/connectors/sapsuccessfactors/images/ias_oauth2-setup-principal-propagation.png?fit=max\&auto=format\&n=WDnFpltAJ0dztN5o\&q=85\&s=5dd1b3424701255d62f828b69dc8862c)

## Find your API Server

Your API server is the SAP SuccessFactors API host for your data center.

<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 data center.</li>
  <li>Copy the **API Server** across, without the trailing slash.</li>
  <li>For Learning and OCN actions, copy the **Learning Domain URL** across. It is the address of your Learning module up to `/learning`.</li>
  <li>Format: `https://{subdomain}.successfactors.com`</li>
  <li>Example: if your Learning address is `https://salesdemo8.successfactors.com/learning/admin`, your Learning Domain URL is `https://salesdemo8.successfactors.com`</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.