A free program from Microsoft that provides developers with the tools, resources, and sandbox environments needed to build solutions for Microsoft 365.
For a Microsoft 365 Developer Program sandbox where the only Global Administrator is locked out by MFA and no other admin exists, self-service recovery is not possible. The required actions must go through Microsoft support / Data Protection, similar to a tenant lockout in a production tenant.
Use the following approach:
- Confirm there is truly no alternative sign-in method
- Ensure there is no second Global Administrator, break-glass account, or other admin with sufficient rights (Global Administrator or Privileged Authentication Administrator) that can:
- Sign in to https://entra.microsoft.com
- Go to Users → All users → [your admin account] → Authentication methods
- Select Require re-register multifactor authentication so the Global Administrator can set up MFA again on next sign-in.
- If such an account exists, have it perform the above; this immediately resolves the MFA loop for the locked-out admin.
- Ensure there is no second Global Administrator, break-glass account, or other admin with sufficient rights (Global Administrator or Privileged Authentication Administrator) that can:
- If there is no other admin and the only Global Administrator is locked out
- This is a tenant lockout scenario. Forum moderators and normal support channels cannot directly reset MFA or detach the sandbox from the Developer Program.
- The resolution pattern in similar cases is escalation to the Microsoft Data Protection / Tenant Recovery team via a support ticket:
- Call Microsoft 365 business support using the phone number for the region: see Find Microsoft 365 for business support phone numbers by country or region.
- Clearly state that this is a tenant lockout, that there is only one Global Administrator, and that MFA is enforcing an endless loop after Authenticator was removed and the UPN was changed.
- Ask specifically for escalation to the Data Protection (or Tenant Recovery) team to:
- Reset or clear MFA registration for the Global Administrator so it can be re-enrolled, or
- If they cannot restore access, assist with tenant recovery options as applicable.
- Based on similar resolved cases, Data Protection will:
- Verify tenant ownership and admin identity (may require business documentation and back‑and‑forth verification).
- Once verified, reset MFA for at least one admin account or add an additional authentication method, allowing sign-in again.
- Handling the Developer Program sandbox attachment
- The Developer Program FAQ and setup guidance do not provide any self-service option to detach or forcibly expire a locked sandbox from the Developer Program profile.
- Because of that, the practical path to either:
- Recover the existing sandbox (preferred), or
- Free the Developer Program profile to create a new renewable E5 sandbox, is still to restore access to the tenant via Microsoft support / Data Protection as above.
- Preventing future lockouts in the sandbox
Once access is restored:
- Add at least one additional Global Administrator account with a different MFA method.
- Create emergency/break-glass admin accounts excluded from restrictive Conditional Access policies, with strong passwords and monitored sign-ins.
- Configure multiple MFA methods (e.g., Authenticator plus phone or other supported methods) for each admin.
- For Developer Program sandboxes, set up MFA immediately after creation as recommended, and document recovery options.
Because this is a dev-only tenant with no production data, Data Protection may still require full verification before making any changes, and the process can take several days, as reflected in similar cases.
References:
- Microsoft 365 Developer Program FAQ
- Set up a Microsoft 365 developer sandbox subscription
- Welcome to the Microsoft 365 Developer Program
- Preventing tenant lockouts
- Tenant Lockout: Scenarios & Next Steps
- Mandatory multifactor authentication for Azure and admin portals
- Common problems with two-step verification for a work or school account
- Your sign-in was blocked
- Global Admin Locked out - Microsoft Q&A
- Severity A Situation - Locked out of global admin account (MFA) - business down - Microsoft Q&A
- How Do I Regain Access to My Account After Losing Access to Microsoft Authenticator? (Urgent Request). - Microsoft Q&A
- I need to reset my mfa methods - Microsoft Q&A
- Microsoft authenticator sending me into a spiral - Microsoft Q&A