Workday overwrites standard Sandbox tenants with a fresh copy of Production every week during the Friday-to-Saturday maintenance window, which wipes Sandbox-only API clients, resets Integration System User (ISU) changes, and invalidates the OAuth refresh token held by Microsoft Defender for Cloud Apps (MDCA). You cannot prevent the OAuth handshake from needing re-authorization after a refresh, but you can cut weekly rework to under five minutes by staging the ISU, security group, and domain permissions in Production so they survive every copy.
Microsoft documents this behavior directly in its Connect Workday to Microsoft Defender for Cloud Apps guide: because Workday refreshes Sandbox tenants every week, the MDCA Sandbox connector fails after each refresh and must be reconnected to continue testing.
Why the weekly Production-to-Sandbox refresh breaks the connector
A standard Workday Sandbox refresh replaces the tenant’s configuration and user data with the latest Production snapshot. Three parts of the Defender for Cloud Apps integration break during that copy:
- Sandbox-only API clients disappear. If you ran
Register API Clientonly in Sandbox, the refresh deletes that client record. TheClient IDandClient Secretstored in the Microsoft Defender portal no longer exist in Sandbox. - Sandbox-only security and tenant settings revert to Production. Any ISU, Integration System Security Group (ISSG), or
System Auditingdomain grant created solely in Sandbox is erased. Likewise, if Enable User Activity Logging (Edit Tenant Setup - System) or OAuth 2.0 Clients Enabled (Edit Tenant Setup - Security) is disabled in Production, the refresh turns those flags off in Sandbox. - Active Sandbox OAuth tokens stop working. Defender for Cloud Apps connects to Workday with the Authorization Code Grant flow and a non-expiring refresh token. Even when the ISU and API client exist in Production and copy cleanly into Sandbox, the refresh token issued during last week’s Sandbox consent prompt no longer matches the refreshed tenant state, causing token renewal to fail until you re-authorize.
Production vs. Sandbox setup: what to stage once and what stays per-tenant
To avoid rebuilding Workday security every Monday morning, separate the objects that should live in Production from the steps that remain Sandbox-specific.
| Component | Where to configure it | What happens on weekly refresh |
|---|---|---|
| ComponentIntegration System User (ISU) and password | Where to configure itProduction | What happens on weekly refreshCopies to Sandbox intact; avoids recreating the account or resetting a Sandbox-only password every week. |
| ComponentIntegration System Security Group (ISSG) and domain grants | Where to configure itProduction | What happens on weekly refreshCopies to Sandbox with all five required domain permissions already active. |
ComponentEnable User Activity Logging and OAuth 2.0 Clients Enabled |
Where to configure itProduction (if approved for Production) | What happens on weekly refreshStays enabled in Sandbox automatically. If not enabled in Production yet, re-enable both in Sandbox after refresh. |
ComponentRegister API Client record |
Where to configure itSandbox (during testing) or Production (pre-staged for go-live) | What happens on weekly refreshA Sandbox-only client is wiped weekly. A Production-staged client copies over, though Sandbox uses its own implementation REST, Token, and Authorization endpoints. |
ComponentOAuth consent handshake (Allow) in Defender portal |
Where to configure itSandbox | What happens on weekly refreshMust be re-authorized in the Microsoft Defender portal after each refresh. |
Required Workday domain security permissions
Microsoft’s Workday connector requires the security group holding your ISU (or connecting account) to have these exact domain security policy grants, followed by Activate Pending Security Policy Changes:
| Functional Area | Domain / Subdomain Security Policy | Report/Task Permissions | Integration Permissions |
|---|---|---|---|
| Functional AreaSystem | Domain / Subdomain Security PolicySet Up: Tenant Setup - General / Set Up: Tenant Setup - Security | Report/Task PermissionsView | Integration PermissionsGet, Put |
| Functional AreaSystem | Domain / Subdomain Security PolicySet Up: Tenant Setup - General / Set Up: Tenant Setup - System | Report/Task PermissionsView | Integration PermissionsNone |
| Functional AreaSystem | Domain / Subdomain Security PolicySecurity Administration | Report/Task PermissionsView | Integration PermissionsGet, Put |
| Functional AreaSystem | Domain / Subdomain Security PolicySystem Auditing | Report/Task PermissionsView | Integration PermissionsGet |
| Functional AreaStaffing | Domain / Subdomain Security PolicyWorker Data: Staffing / Worker Data: Public Worker Reports | Report/Task PermissionsView | Integration PermissionsGet |
Because the MDCA connector uses Authorization Code Grant, Workday displays an interactive Allow consent pop-up when you click Connect Workday in the Defender portal. If you check Do Not Allow UI Sessions on the ISU, that ISU cannot sign in interactively to approve the prompt. Either sign in with another member of the same security group during the consent step, or leave UI sessions enabled on the ISU only while completing the OAuth handshake.
Post-refresh reconnect checklist for Sandbox
Run these steps after the weekend refresh completes:
- Check tenant setup flags in Sandbox. Open
Edit Tenant Setup - Systemand confirm Enable User Activity Logging is checked. OpenEdit Tenant Setup - Securityand confirm OAuth 2.0 Clients Enabled is checked. - Confirm the ISU and security group exist. If you staged them in Production, verify the account is unlocked. If you only built them in Sandbox, recreate the ISU, ISSG, and domain permissions above, then run
Activate Pending Security Policy Changes. - Verify or recreate the API client. Run
View API Clientsin Sandbox. IfMicrosoft Defender for Cloud Appsis missing, runRegister API Client(Register API Client - Task) with these values:- Client Grant Type:
Authorization Code Grant - Access Token Type:
Bearer - Redirection URI:
https://portal.cloudappsecurity.com/api/oauth/connect(orhttps://portal.cloudappsecurity.us/api/oauth/connectfor US Government GCC High) - Non-Expiring Refresh Tokens:
Yes - Scope (Functional Areas):
StaffingandSystemCopy theClient ID,Client Secret,Workday REST API Endpoint,Token Endpoint, andAuthorization Endpointfrom the confirmation screen.
- Client Grant Type:
- Handle SAML SSO if enabled. If the authorizing Workday account authenticates through SAML SSO, append
?redirect=nto the Authorization Endpoint (or&redirect=nif the URL already includes query parameters). - Reconnect in Microsoft Defender Portal. Go to Settings > Cloud Apps > Connected apps > App Connectors, open the existing Workday Sandbox connector (or select + Connect an app > Workday), enter the Sandbox endpoints and credentials, and click Connect Workday.
- Approve consent and verify status. Select Allow in the Workday pop-up, then return to App Connectors and confirm the status shows Connected. Once connected, Defender for Cloud Apps backfills up to 7 days of prior Workday activity logs.
Pausing refreshes for multi-week security testing
If your team is running an extended SIEM or Defender for Cloud Apps validation sprint and cannot afford a Friday night reset, a Workday Named Support Contact (NSC) can submit a Refresh Exemption request in Workday Tenant Management before the weekly maintenance deadline. That skips the scheduled Production copy for that weekend so your Sandbox API client and OAuth refresh token remain active until the next unexempted refresh.