CURL
or Postman
to run the commands.
Set your environment variables
<entra_app_client_id>
, <entra_app_client_secret>
, <entra_directory_tenant_id>
, <workday_api_client_id>
, <username_of_user>
and <password_of_user>
with the appropriate information.Add permissions to access the Workday API
Get a login token from Entra ID
password
grant type is used to simulate user logging in to Entra ID.Exchange the login token for a SAML assertion
JWT bearer
grant type is used to exchange the access token for a SAML assertion.Replace the $TOKEN
with the token you received in the Step 3.Exchange the SAML assertion for Workday access token
$SAML_ASSERT
with the SAML assertion that you received in the Step 4.Parameter | Description |
---|---|
<workday_domain> | The domain of your Workday instance. This is where API requests are sent. |
<workday_tenant> | Your Workday tenant identifier. |
$SAML_ASSERT | The SAML assertion token received from Entra ID. Used to request a Workday access token. |
Trigger the Workday API
Result