> ## 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 RUN Powered by ADP with OAuth 2.0 (Client Credentials) – StackOne Hub

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

> [!WARNING]
>
> Only an ADP Marketplace partner can get these values. ADP issues them to the partner's data connector app after the RUN client subscribes to it and gives consent.

## Find your client credentials

RUN Powered by ADP gives API access only through an ADP Marketplace partner's data connector app. The **Client ID** and **Client Secret** belong to one RUN client, and ADP returns them to the partner only after that client has subscribed to the app and given consent.

**1. Get a partner token**

In the Developer Self-Service Portal, open your project and go to **Development API Credentials** > **Data Connector**.

<ul>
  <li>Copy the partner client ID and client secret under **Step One**.</li>
  <li>Request a token from `https://accounts.adp.com/auth/oauth/v2/token` with `grant_type=client_credentials`, the partner client ID and client secret as Basic auth, and your partner certificate.</li>
</ul>

**2. Retrieve the client credentials**

Call the credentials read API with the partner token and the client's organization OID, which arrives in the subscription create notification from ADP Marketplace.

<ul>
  <li>Endpoint: `https://api.adp.com/events/core/v1/consumer-application-subscription-credentials.read` (POST)</li>
  <li>The response holds the client's **Client ID** and **Client Secret**. A response with no credentials means the client has not given consent yet.</li>
  <li>Copy the **Client ID** and **Client Secret** across.</li>
</ul>

## Add the partner certificate

ADP requires your partner Mutual SSL certificate on every call to `accounts.adp.com` and `api.adp.com`. Use the certificate you generated in the Partner Self-Service portal and the private key you used to create its certificate signing request.

<ul>
  <li>Copy the Client Certificate across, including its BEGIN and END lines.</li>
  <li>Copy the Private Key across, including its BEGIN and END lines.</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.