Register API Clients
Security: These domains in the System functional area:
- Set Up: Tenant Setup - Security
- Security Administration
Workday supports OAuth 2.0 as part of the Workday API Infrastructure. OAuth 2.0 enables Workday users to authorize third-party clients to access their Workday data securely on their behalf.
To access the Workday API, register OAuth 2.0 clients with Workday. You can enable OAuth 2.0 clients to access the Workday API for each tenant.
- Access theEdit Tenant Setup - Securitytask.
- In theOAuth 2.0 Settingssection, select theOAuth 2.0 Clients Enabledcheck box.
- Access theRegister API Clienttask.
- Enter theClient Name.
- Select theClient Grant Type.
Optie Omschrijving Authorization Code GrantUse for clients that can persist data, such as mobile applications.Implicit Grant (Do Not Use)Necessary for applications that don't include a server-side component, such as JavaScript applications.Workday plans to retire this client grant type in a future release. We recommend that you use these client grant types instead:- Authorization Code Grant with PKCE support.
- JWT Bearer Grant.
JWT Bearer GrantUse the JSON Web Token (JWT) for clients such as your Salesforce integration. This grant type enables you to restrict the exchange of security assertions for access and refresh tokens to Integration System Users (ISUs) you select in theIntegration System Userfield. Provide anx509 Certificatefor validating signatures. You can also select theAllow Integration Messagescheck box to ensure that Workday receives necessary information about the status of the integration.SAML Bearer GrantUse for applications that use SAML SSO for authentication.Also select anAssertion Verification. Select:- Use Configured IdPsto use the X.509 public certificate of the SAML IdP configured onEdit Tenant Setup - Securityfor validating signatures. The issuer in this case is the IdP.
- Use Certificate (x509 option)to specify anx509 Certificatefor validating signatures. The issuer in this case is the API Client ID. You can also optionally select ISUs in theIntegration System Userfield, to restrict the exchange of security assertions for access and refresh tokens to those ISUs.
You can also:- Select theAllow Access to All System Userscheck box to enable all users, rather than just Integration System Users (ISUs), to use the SAML bearer assertion flow.
- Select theAllow Integration Messagescheck box to ensure that Workday receives necessary information about the status of the integration.
- (Optional) Select theSupport Proof Key for Code Exchange (PKCE)check box when using theAuthorization Code Grantclient grant type to add PKCE support to your client.PKCE enables the client to mitigate the threat of having the authorization code intercepted. Select this check box if the client will be supporting Cross Origin Resource Sharing (CORS)-enabled cross-origin requests.
- (Optional) Select theEnforce 60 Minute Access Token Expirycheck box to enable the API client to return bearer tokens that:
- Have a 60-minute expiry.
- Don't invalidate when sessions end, as long as they haven't expired.
OK, you can't clear it. - Select an X.509 public key in thex509 Certificatefield.This field is active when you select:
- Jwt Bearer Grantas theClient Grant Type.
- SAML Bearer Grantas theClient Grant TypeandUse Certificate (x509 option)as theAssertion Verification.
- (Optional) Select 1 or more ISUs in theIntegration System Userfield.This field displays when thex509 Certificatefield is active. If you don't select any ISUs in this field, the API client won't restrict access based on ISU user accounts. If you select 1 or more ISUs, sign-in attempts using other users will fail. Workday recommends that you restrict the access of the client to specific ISUs.
- Select theAccess Token Type.
Optie Omschrijving BearerEnables simpler development.MAC (Do Not Use)Provides increased security.Workday plans to retire this access token type in a future release. We recommend that you use bearer tokens instead. - Enter theRedirection URI.
- Use a comma as the delimiter to specify more than 1 redirection URI.
- ForAuthorization Code Grantclient grant types, only secure URIs starting with https are valid.
- ForImplicit GrantandAuthorization Code GrantwithProof Key for Code Exchange (PKCE)enabled, only secure URIs starting with https and custom domain URIs are valid. Example: officeconnect://test.com and https://google.com.
- (Optional) Select theRefresh Token Timeout (in days). You can select a value between 1 and 365 days. The default value is 30 days. Refresh tokens are rate limited to 1 token per second, per user.
- (Optional) Select theNon-Expiring Refresh Tokenscheck box to prevent the refresh token from timing out.
- (Optional) Select theDisabledcheck box to prevent the client from requesting access to Workday.
- Select theGrant Administrative Consentcheck box when you want to grant OAuth consent to a REST API Client tenant-wide. When selected, users don't need to grant client access explicitly to Workday functional areas.
- From theScope (Functional Areas)prompt, select the functional areas to which your OAuth 2.0 client requires access.Select the functional areas that Workday enables for the Workday REST API. Also select the functional areas for the domains of any custom objects to which you might require access. Use caution to expose only those functional areas that you specifically require access to.
- (Optional) When your OAuth 2.0 client requires access to core Workday domains that aren't in any functional areas, select theInclude Workday Owned Scopecheck box.
- (Optional) When you want Workday to authorize OAuth 2.0 client access only from specified IP address ranges, select the ranges from theRestricted to IP Rangesprompt.You can also selectCreate IP Rangeto create a named, comma-separated list of IP addresses using one of these formats:
- X.X.X.X.
- CIDR notation. Example: 192.168.0.1/24.
- X.X.X.X - Y.Y.Y.Y.
Workday has a limitation on IP ranges that include a dash. If you experience sign-in errors in theSignons and Attempted Signonsreport after you begin using an IP range that you entered in that format:- To see if the range breaks down to a series of smaller segments, use a tool that converts IP address ranges to CIDR notation. Such third-party CIDR calculator tools are available online.
- Reenter theIP Rangein Workday as a comma-separated list of the segments returned by the tool. Example: 199.67.128.0/18, 199.67.192.0/24 or 199.67.128.0-199.67.191.255, 199.67.192.0-199.67.192.255.
- Add a row to theAllowed Origingrid for each domain enabled for cross-origin requests. The domains must start withhttps://orchrome-extension://and use the CORS format.Workday might add CORS headers when responding to cross-origin requests fromAllowed Origindomains. Workday only supports cross-origin requests for clients using the Authorization Code grant type with PKCE support.
Workday generates a Client ID and a Client Secret for the OAuth 2.0 client. Copy the Client Secret before you navigate away from the page, and store it securely. If you lose the Client Secret, you can generate a new one using the
Generate New API Client Secret
task.Workday can deliver OAuth 2.0 clients as part of an update. All OAuth 2.0 clients delivered by Workday are disabled by default.
If you want to generate a new Client Secret for an OAuth 2.0 client:
- Access theGenerate New API Client Secrettask.
- Select theAPI Clientfrom the prompt.
- Select theConfirmcheck box.
When the OAuth 2.0 client is already in use, generating a new Client Secret will cause the client to become unusable.