---
title: "Workday Sandbox Refresh: Reconnect Defender for Cloud Apps"
description: "Workday's weekly Sandbox refresh overwrites Sandbox-only ISU, OAuth client, and token state. Learn how to align Production setup and reconnect MDCA fast."
url: https://kiweely.com/guides/workday-defender-for-cloud-apps-sandbox-refresh-reconnect
---

# 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 December 4
-   Applies to **Workday Extend**
-   5 min read
-   Published December 4
-   By Kiweely

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](https://learn.microsoft.com/en-us/defender-cloud-apps/connect-workday) 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 |
| --- | --- | --- |
| Integration System User (ISU) and password | Production | Copies to Sandbox intact; avoids recreating the account or resetting a Sandbox-only password every week. |
| Integration System Security Group (ISSG) and domain grants | Production | Copies to Sandbox with all five required domain permissions already active. |
| `Enable User Activity Logging` and `OAuth 2.0 Clients Enabled` | Production (if approved for Production) | Stays enabled in Sandbox automatically. If not enabled in Production yet, re-enable both in Sandbox after refresh. |
| `Register API Client` record | Sandbox (during testing) or Production (pre-staged for go-live) | A Sandbox-only client is wiped weekly. A Production-staged client copies over, though Sandbox uses its own implementation REST, Token, and Authorization endpoints. |
| OAuth consent handshake (`Allow`) in Defender portal | Sandbox | Must 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 |
| --- | --- | --- | --- |
| System | Set Up: Tenant Setup - General / Set Up: Tenant Setup - Security | View | Get, Put |
| System | Set Up: Tenant Setup - General / Set Up: Tenant Setup - System | View | None |
| System | Security Administration | View | Get, Put |
| System | System Auditing | View | Get |
| Staffing | Worker Data: Staffing / Worker Data: Public Worker Reports | View | Get |

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

-   [Workday Admin Guide: User Activity Logging](https://doc.workday.com/admin-guide/en-us/manage-workday/tenant-configuration/user-activity-logging/unv1636547598141.html)
-   [Workday Developer Documentation: User Activity Logging REST API](https://developer.workday.com/documentation/mhr1626995534900/UserActivityLoggingRESTAPI)

## Related guides

[All guides](https://kiweely.com/guides)

### More guides on Tenants, releases and testing

[All 28 guides](https://kiweely.com/guides#tenants)

-   [Can You Refresh a Workday Implementation Tenant from Another Tenant?](https://kiweely.com/guides/workday-implementation-tenant-refresh-from-another-tenant)
-   [The Workday OPC Playbook: Scoping, Tenant Hygiene, and Delivery Cadence for a One-Person Firm](https://kiweely.com/guides/workday-one-person-company-opc-playbook)
-   [What You Can (and Can’t) Do in a Personal Workday Developer Tenant](https://kiweely.com/guides/workday-personal-developer-tenant-limitations)
-   [How to Stop Your Personal Workday Developer Tenant From Expiring (7-Day Rule & Backup Checklist)](https://kiweely.com/guides/workday-personal-developer-tenant-7-day-expiration-backup)
-   [Workday Sandbox Preview Testing: A 5-Week Release Runbook](https://kiweely.com/guides/workday-sandbox-preview-5-week-testing-schedule)
-   [Workday R1 and R2 Release Management: Auto-Enabled vs. Opt-In Triage](https://kiweely.com/guides/workday-release-management-auto-enabled-vs-opt-in-triage)
-   [Workday Sandbox Preview Testing Calendar by Module: 5-Week Regression Plan](https://kiweely.com/guides/workday-sandbox-preview-testing-calendar-by-module)
-   [Workday Regression Testing for a Small In-House Team: What to Retest, When, and as Whom](https://kiweely.com/guides/workday-regression-testing)

### From the blog on Tenants, releases and testing

[All posts](https://kiweely.com/blog)

-   [Check a Workday Community answer against your tenant](https://kiweely.com/blog/verify-workday-community-answers-with-tenant)
-   [Implementation and support need different rules for Workday AI](https://kiweely.com/blog/workday-implementation-vs-ams-ai-policy)
-   [Workday cutover and go-live: the sequence, and a list written from tests](https://kiweely.com/blog/workday-cutover-runbook-from-ai-tests)

## 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 in touch](https://kiweely.com/vine#partners) [Book a demo](https://kiweely.com/demo)

## Get the next guide in your inbox.

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