# 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. The two environments are set up separately.

## 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 |

You'll also need the SAML certificate from [SAML SSO](https://connect.equest.com/workday-integration/docs/saml-sso) when you set things up in eQuest.

## Step 1: Create the Integration System User

1.  In Workday, open the **Create Integration System User** task.
2.  Enter a user name and password for eQuest to use.

With OAuth 2.0, eQuest never stores this password. It only uses the password if you pick Basic authentication.

## Step 2: Set up authentication

Use OAuth 2.0 for every new integration. It's the most secure option, it's fully supported by Workday, and eQuest doesn't have to store a password. The other two options are deprecated by Workday and only covered here for existing setups.

### OAuth 2.0 (recommended)

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.

In eQuest:

1.  Go to **Advanced Settings** > **Workday Configuration**.
2.  Set **Integration Auth** to OAuth.
3.  Enter the Client ID, Client Secret, and Refresh Token.

The OAuth Token URL fills in on its own once the Web Service URL has been entered and 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.

### Token based authentication (deprecated)

This uses an x.509 key pair that eQuest creates.

1.  In eQuest, in Workday Configuration, set **Integration Auth** to Token-based.
2.  Click **Generate Cert**. eQuest creates the key pair.
3.  Copy the public certificate eQuest shows.
4.  In Workday, open **Create x509 Public Key**.
5.  Give it a clear name, like "eQuest Integration Key", and paste in the certificate.
6.  Open **Configure Web Service Security** and pick the Integration System User.
7.  Turn on **x509 Token Authentication**, pick the public key you just created, and save.

The key pair expires after one year. The expiration date shows above the public certificate in eQuest's Workday Configuration.

### Basic authentication (deprecated)

eQuest stores the Integration System User's user name and password and signs in with them.

By default, Workday expires ISU passwords. If your security policy needs that, keep it, but update the password in eQuest's Workday Configuration every time it changes. If recruiters suddenly see "invalid username or password," this is usually why.

To make the account exempt from expiring:

1.  Open the **Maintain Password Rules** task.
2.  In **System Users exempt from password expiration**, add the eQuest ISU.
3.  Submit.

To change the password:

1.  Open **Integration System User Security Configuration** and find the eQuest ISU.
2.  From the related actions menu, pick **Security Profile** > **Edit Workday Account**.
3.  Enter the new password and submit.
4.  Update the password in eQuest's Workday Configuration too.

## 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/workday-integration/docs/security).
