# Schema Reference

The application schema is used to configure the objects returned from a connector.

> [!NOTE]
>
> - The **Account Schema** tab is used to define the attributes for each object type in the application being configured. The schema attributes can be defined as **Entitlement** or **Multi-Valued**. Refer to [Managing Source Account Schemas](<https://documentation.sailpoint.com/saas/help/accounts/schema.html>) for more information.
> - The schema attributes that are not present by [default](<#default-account-schema>) must be defined as strings if not specified.

The Workday connector uses the following default correlation and object configurations.

## Default Correlation Configuration

The source uses the following mapping correlation by default:

| Identity Attribute | Operation | Account Attribute |
| --- | --- | --- |
| SailPoint User Name (uid) | Equals | FILENUMBER |
| SailPoint User Name (uid) | Equals | USERID |
| Work Email | Equals | EMAIL\_ADDRESS\_WORK |
| Employee Number | Equals | USERID |

## Default Account Schema

Each source supports a variety of details, or attributes, about each user who has an account, such as their name, email address, manager name, and location.

The set of account attributes each source stores and how they're organized is known as the account's *schema*. To best represent your data, you can configure sources to use an account schema matching the one you use in the external connector. Refer to [Managing Source Account Schemas](<https://documentation.sailpoint.com/saas/help/accounts/schema.html>) for more information.

### Default Account ID

SailPoint requires that certain attributes remain in your configuration. These attributes are referred to as *account IDs*.

> [!CAUTION]
>
> Changing the attribute marked as the account ID after aggregating accounts can result in duplicate accounts being created. To avoid this, either reset the accounts on this source before editing the account ID attribute or edit the account ID attribute before aggregating accounts.
>
> To resolve issues caused by changing account IDs, reconfigure them to their default values.

The following table lists the default account IDs for this connector:

| Account ID | Schema Object Type |
| --- | --- |
| FILENUMBER | Account |

### Default Account Attributes

The Workday connector supports the following default account schema attributes and customer configurable attributes. The attributes must be defined as strings if not specified.

| Attribute Name | Description |
| --- | --- |
| USERID | The Worker ID associated with the worker. |
| FILENUMBER | The user's unique ID. This is an Account ID which must not be changed. |
| MANAGER\_ID | The worker's manager's Employee ID. |
| JOBTITLE | The worker's business title. |
| JOBCODE | The worker's job profile. |
| POSITION | The worker's position. |
| EMPLOYEE\_TYPE | The user's classification type within the organization. |
| FIRST\_NAME | The worker's legal first name. |
| LAST\_NAME | The worker's legal last name. |
| MIDDLE\_NAME | The worker's preferred middle name. |
| LEGAL\_MIDDLE\_NAME | The worker's legal middle name. |
| WORKER\_NAME | The worker's name. |
| CLASS | A concatenation of the worker's position, time type, and employment type. |
| DEPARTMENT | The worker's cost center. |
| COST\_CENTER | The cost center's name in the worker's organization data. |
| COST\_CENTER\_HIERARCHY | The worker's cost center hierarchy. |
| COST\_CENTER\_REFERENCE\_ID | The cost center's reference ID in the worker's organization data. |
| COMPANY\_NAME | The company to which the worker belongs. |
| ORGANIZATION\_NAME | The worker's business unit's name. |
| DIVISION | The sales channel in the worker's organization data. |
| TEAM | The team in the worker's organization data. |
| LOCATION | The worker's business site. |
| HIREDATE | The worker's hire date. |
| TERMINATION\_DATE | The date the worker was terminated. |
| LAST\_DAY\_OF\_WORK | The worker's last working day. |
| CONTRACT\_END\_DATE | The worker's contract end date. |
| FULLPARTTIME | Indicates whether the worker is full time or part time. |
| ON\_LEAVE | Indicates if the worker is on leave. |
| FUTURE\_DATE | Represents the worker's next future milestone date. For example, future date of hire, termination date, onboarding date, or end of their contingent worker contract. |
| FUTURE\_ACTION | Represents the worker's next future action. For example, Hire, Terminate, Onboarding, or End Contingent Worker Contract (Hire Employee). |
| POSTAL\_CODE | The worker's business site's postal code. |
| COUNTRY | The worker's business site's country. |
| CITY | The worker's business site's city. |
| STATE | The worker's business site's state. |
| ADDRESS\_LINE\_1 | The worker's business site's street address. |
| ADDRESS\_HOME | The worker's home address. |
| ADDRESS\_WORK | The worker's work address. |
| EMAIL\_ADDRESS\_HOME | The worker's home email address. |
| EMAIL\_ADDRESS\_WORK | The worker's email address. |
| ADDITIONAL\_EMAIL\_ADDRESS\_HOME | The worker's additional home email address. |
| ADDITIONAL\_EMAIL\_ADDRESS\_WORK | The worker's additional work email address. |
| WORK\_MOBILE | The worker's work mobile number. |
| WORK\_TELEPHONE | The worker's work telephone number. |
| HOME\_MOBILE | The worker's home mobile number. |
| HOME\_TELEPHONE | The worker's home telephone number. |

> [!NOTE]
>
> For more information on Rescinded/Corrected Event for Hired and Terminated Workers, refer to [Rescinded and Corrected User Records](<https://documentation.sailpoint.com/connectors/workday/saas/help/configuring.html#rescinded-and-corrected-user-records>). The Workday connector can aggregate fields in addition to the fields present in the default account schema - for more information, refer to [XPath to Support Additional Standard Attributes in Schema](<https://documentation.sailpoint.com/connectors/workday/saas/help/configuring.html#xpath-to-support-additional-standard-attributes-in-schema>).

### Optional Attributes

If you require the `image` attribute to be a String attribute type, add the following attributes:

| Attributes | Description | Source Data Element WD Object /Field Web Service Element File field |
| --- | --- | --- |
| IMAGE\_NAME (type as String) | Image file name | `Worker_Data/Photo_Data/File name` |
| IMAGE (type as String) | Image value as string | `Worker_Data/Photo_Data/Image` |

> [!NOTE]
>
> Adding the `image` attribute to the schema may increase the time taken to fetch a response from the Workday source. To aggregate image details, set the `Include_Photo` parameter to true within the `Configure_Response_Group` configuration.

### Additional Schema Attributes for Pre-Hire Functionality

> [!NOTE]
>
> These attributes are available out of the box for new sources. For existing sources, additional schema attributes need to be added manually in order to use the Pre-Hire functionality.

| Schema Attribute | Description |
| --- | --- |
| PRE\_HIRE\_ID | Pre Hire ID for the person. |
| DATE\_PRE\_HIRE\_ADDED\_TO\_SYSTEM | The date when pre-hire is added in Workday. |
| ELIGIBLE\_FOR\_HIRE | Specify whether Prehire is eligible for hire or not. |
| REFFERED\_BY | Pre-Hires is referred by. |
| SOURCE | Pre-Hire Source. |
| COMMENT | The COMMENT added for the PreHire. |
