# SAML SSO

Single sign on lets recruiters go from Workday straight into eQuest without typing a password. Workday is the identity provider and eQuest is the service provider. eQuest matches the recruiter by their Workday primary email address.

## Step 1: Create the SAML SSO link

Open the **Create SAML SSO Link** task and fill it in like this:

| Field | Value |
| --- | --- |
| Name | Up to you, like "eQuest" or "eQuest Job Posting" |
| SAML Version | 2.0 |
| Assertion Consumer Service URL (production) | `https://workday.equest.com/login_workday_check?tenant_name=TENANT` |
| Assertion Consumer Service URL (testing) | `https://workday.testing.equest.com/login_workday_check?tenant_name=TENANT` |
| Name Identifier | Email Address |
| Recipient | The same Assertion Consumer Service URL |
| Issuer ID | Optional. A unique ID for this link. It overrides the Service Provider ID on the Edit Tenant Setup - Security task. |
| Signature Method | SHA256 |
| Message Signing | Assertion Only |
| x509 Private Key Pair | See Step 2 |

Replace `TENANT` with the exact value in the Tenant field of eQuest's Workday Configuration. For example, if your tenant is SomeCo, the production URL is:

```text
https://workday.equest.com/login_workday_check?tenant_name=SomeCo
```

The older URL without `?tenant_name=` still works, but use the new one. It fixes the "Request source could not be identified" error in newer versions of Chrome.

## Step 2: Create the x509 certificate

The certificate signs the sign in messages between Workday and eQuest.

1.  In the x509 Private Key Pair field, pick **Create x509 Private Key Pair**.
2.  Give it a name you'll recognize later, like "eQuest Certificate". A description is optional.
3.  Click OK. It doesn't matter for eQuest whether Do Not Allow Regeneration is checked.
4.  Click OK again to finish creating the SAML SSO link.

You'll copy this certificate into eQuest later. See [eQuest Setup](https://connect.equest.com/workday-integration/docs/equest-setup).

## Step 3: Add the requisition number

The SAML link has to pass the requisition number, so eQuest knows which job to load. You can do this while creating the link, or later with **Edit SAML SSO Link**.

1.  For the business object to evaluate fields for SAML attributes, pick **Job Requisition**.
2.  Add an attribute with external fields. Set the Attribute Name to `requisition_number`, exactly like that.
3.  Set the field to **Reference ID** (Business Object: Reference Index).

![requisition\_number attribute on the SAML SSO link](https://tools.equest.com/workday/images/inclusion-req-saml.png)

## Automatic posting account creation

When a recruiter signs in through a SAML link without a requisition number (the standalone access link in [Optional Features](https://connect.equest.com/workday-integration/docs/optional-features)), eQuest checks for a posting account with their Workday primary email. If there isn't one, eQuest creates it at the top level of your posting account tree.

> For this to work, the top level profile needs a default Company Name, Account Name, and Candidate Response Email Address. In the eQuest admin tool, click the top level of your posting account tree and pick Edit.

![Top level profile in the eQuest posting account tree](https://tools.equest.com/workday/images/root-level.png)

### Board permissions for new accounts

New accounts get whatever board permissions are set at the top level. If you don't want new accounts to see any boards until you've reviewed them:

1.  In the Posting Accounts section, create a subgroup and give it the board permissions you want.
2.  In the Permissions section, deny all boards at the top level and allow them at the subgroup level instead.

![Board permissions at the top level and subgroup level](https://tools.equest.com/workday/images/posting-account-permissions.png)

New accounts now start out with no boards. When one shows up, use **Move to Group** in the posting account menu to put it in the right subgroup.

Next up: [Business Process](https://connect.equest.com/workday-integration/docs/business-process).
