# Connect Workday

eQuest reads job data from Workday through Workday's Recruiting web service. To do that, it needs an account to sign in with and the address of your tenant's web service. This page covers both.

Do this once in your sandbox tenant and again in production.

## What you'll end up with

| Value | What it is | Where it comes from |
| --- | --- | --- |
| Client ID | Identifies the OAuth client eQuest uses | Created in Workday |
| Client Secret | The private key that goes with the Client ID | Created in Workday |
| Refresh Token | Lets eQuest get new access tokens on its own | Created in Workday |
| OAuth Token URL | Where eQuest gets access tokens | Filled in by eQuest from your Web Service URL |
| Web Service URL | Your tenant's Recruiting web service address | Found in Workday |

There's no SAML certificate in this list. That's only needed when recruiters sign in to eQuest.

## Step 1: Create the Integration System User

1.  In Workday, open the **Create Integration System User** task.
2.  Create the user eQuest will connect as.

With OAuth 2.0, eQuest doesn't store or use this user's password. Instead, the user is linked to a refresh token in the next step. That also means you don't have to worry about the password expiring.

## Step 2: Set up OAuth 2.0

> Use OAuth 2.0. Token based and Basic authentication are deprecated by Workday, and the AutoPost Only option in eQuest is hidden when Token based is selected.

In Workday:

1.  Search for and open **Register API Client for Integrations**.
2.  Fill in the form:
    -   Client Name: something easy to find later, like "eQuest Integration Client"
    -   Non-Expiring Refresh Tokens: checked
    -   Scope (Functional Areas): pick only Contact Information, Jobs & Positions, Organizations and Roles, Pre-Hire Process, and Recruiting
3.  Click OK.
4.  Copy the Client ID and Client Secret from the page that opens. Keep the page open, you'll need it in the next step.
5.  Click the related actions menu (the three dots) and pick **API Client** > **Manage Refresh Tokens for Integration**.
6.  Pick the Integration System User from Step 1.
7.  On the Delete or Regenerate Refresh Token screen, check **Generate New Refresh Token** and click OK.
8.  Workday shows "Successfully Regenerated Refresh Token." Copy the refresh token.

You now have the Client ID, Client Secret, and Refresh Token. You'll enter them in eQuest in [eQuest Setup](https://connect.equest.com/autopost-workday/docs/equest-setup).

eQuest fills in the OAuth Token URL on its own once the Web Service URL has been saved. To double check it, or to see all your API clients, open the **View API Clients** report in Workday and go to the API Clients for Integrations tab.

## Step 3: Find your Web Service URL

Each tenant has its own Web Service URL. eQuest uses it to know where to read job data from.

1.  Open the **Public Web Services** task.
2.  Find **Recruiting (Public)**, open the related actions menu, and pick **Web Service** > **View WSDL**.
3.  A long XML document opens. Scroll down to the `<soapbind:address>` element and copy its location.

It should look something like this:

```text
https://wd2-impl-services1.workday.com/ccx/service/equest_dpt2
```

To check it, add `/Recruiting/`, the API version and `?wsdl` to the end, for example `/Recruiting/v31.0?wsdl`, and open it in a browser. You should see the same XML document.

> Sandbox tenant URLs have "impl" in them. If you're setting up production and your URL has "impl" in it, you're using the wrong tenant.

Next up: [Security Setup](https://connect.equest.com/autopost-workday/docs/security).
