Skip to content
KiweelyKiweelyKiweely

Why Workday Sandbox Refreshes Break Defender for Cloud Apps (and How to Reconnect)

Workday refreshes Sandbox tenants from Production every week, wiping Sandbox-only API clients, ISU changes, and active OAuth tokens. Stage the ISU and security group in Production, then follow the post-refresh checklist to re-authorize Microsoft Defender for Cloud Apps.

  • Checked against Workday on
  • Applies to Workday Extend
  • 5 min read
  • Published
  • By Kiweely
On this page

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:

  1. Sandbox-only API clients disappear. If you ran Register API Client only in Sandbox, the refresh deletes that client record. The Client ID and Client Secret stored in the Microsoft Defender portal no longer exist in Sandbox.
  2. Sandbox-only security and tenant settings revert to Production. Any ISU, Integration System Security Group (ISSG), or System Auditing domain 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.
  3. 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:

  1. Check tenant setup flags in Sandbox. Open Edit Tenant Setup - System and confirm Enable User Activity Logging is checked. Open Edit Tenant Setup - Security and confirm OAuth 2.0 Clients Enabled is checked.
  2. 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.
  3. Verify or recreate the API client. Run View API Clients in Sandbox. If Microsoft Defender for Cloud Apps is missing, run Register 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 (or https://portal.cloudappsecurity.us/api/oauth/connect for US Government GCC High)
    • Non-Expiring Refresh Tokens: Yes
    • Scope (Functional Areas): Staffing and System Copy the Client ID, Client Secret, Workday REST API Endpoint, Token Endpoint, and Authorization Endpoint from the confirmation screen.
  4. Handle SAML SSO if enabled. If the authorizing Workday account authenticates through SAML SSO, append ?redirect=n to the Authorization Endpoint (or &redirect=n if the URL already includes query parameters).
  5. 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.
  6. 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.

Sources checked

Run multi-tenant work and release tests faster.

Kiweely Vine compares setup across tenants, runs Start Proxy tests, tracks deliverables and tenant changes, and keeps Production behind confirmed approvals.

Get the next guide in your inbox.

One email a month with new guides and one Extend tip. Nothing else.

We’ll email you once to confirm. Unsubscribe in one click from any issue.

Protected by reCAPTCHA. Google’s privacy policy and terms apply.