> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP SuccessFactors

export const title_2 = "SAP SuccessFactors";

export const title_1 = "SAP SuccessFactors";

export const title_0 = "SAP SuccessFactors";

## Prerequisites

Before you create the connection, gather the following information from your SAP SuccessFactors instance:

### Server URL

The URL of the server where your SAP SuccessFactors instance is hosted depends on your environment (production or preview) and data center location.

<Steps>
  <Step>
    Sign in to your SAP SuccessFactors instance and note the subdomain in the browser address bar (for example, `salesdemo4` in `https://salesdemo4.successfactors.com`).
  </Step>

  <Step>
    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 the row that matches your subdomain.
  </Step>

  <Step>
    Copy the corresponding **API Server URL** (for example, `https://api4.successfactors.com`). This is the value you enter for **URL** when configuring the connection.
  </Step>
</Steps>

If you cannot determine the correct API server, contact your SAP administrator or SAP Support.

### Company Id

<Steps>
  <Step>
    Sign in to your SAP SuccessFactors instance.
  </Step>

  <Step>
    Click your profile image in the upper-right corner, then select **Show version information**.
  </Step>

  <Step>
    In the dialog that opens, copy the value next to **Company ID**. This is the value you enter for **Company Id** when configuring the connection.
  </Step>
</Steps>

## Setup Guide

Follow these steps to connect SAP SuccessFactors to your Connect AI account:

<Steps>
  <Step>
    Open the **Sources** page of the Connect AI navigation menu.
  </Step>

  <Step>
    Click **+ Add Connection** in the upper-right corner.
  </Step>

  <Step>
    Type *SAP SuccessFactors* into the search field, then click the data source name.
  </Step>

  <Step>
    On the **Basic Settings** tab of the new connection, enter a connection name or keep the default name.
  </Step>

  <Step>
    Enter the **URL** of the server where the SAP SuccessFactors instance is hosted. You located this information in the prerequisites.
  </Step>

  <Step>
    Enter the SAP SuccessFactors username for authentication in the **User** field.
  </Step>

  <Step>
    Enter your unique **Company Id** that you located in the prerequisites.
  </Step>

  <Step>
    Select the Authentication method, then proceed to the relevant section and follow those instructions.
  </Step>
</Steps>

## Authentication Methods

<Tabs>
  <Tab title="Basic">
    <Steps>
      <Step>
        Enter the **Password** for the **User** entered above.
      </Step>

      <Step>
        At the top of the Connect AI **Add {title_0} Connection** page, click **Save & Test**.

        * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
        * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
        * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
      </Step>
    </Steps>
  </Tab>

  <Tab title="OAuth Client">
    <Steps>
      <Step>
        Enter the **OAuth Client Id** assigned when you registered your SAP SuccessFactors account for OAuth.
      </Step>

      <Step>
        Enter the **OAuth Client Secret** for your SAP SuccessFactors account for OAuth.
      </Step>

      <Step>
        At the top of the Connect AI **Add {title_1} Connection** page, click **Save & Test**.

        * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
        * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
        * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
      </Step>
    </Steps>
  </Tab>

  <Tab title="OAuthSAML2">
    <Steps>
      <Step>
        Enter the **OAuth Client Id** assigned when you registered your SAP SuccessFactors account for OAuth.
      </Step>

      <Step>
        Enter the PEM **Private Key** certificate downloaded upon registering your OAuth Client Application.
      </Step>

      <Step>
        At the top of the Connect AI **Add {title_2} Connection** page, click **Save & Test**.

        * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
        * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
        * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
      </Step>
    </Steps>
  </Tab>
</Tabs>

## More Information

For more information about interactions between Connect AI and SAP SuccessFactors, see [this information page](https://cdn.cdata.com/help/GBM/cloud/default.htm#default).
