Two emergency access accounts have been defined
This check looks at whether the tenant has two emergency access (break-glass) accounts defined, which exist only to get you back in when normal administrator sign-in fails. The safe setting is two dedicated cloud-only accounts with the highest administrator role, strong credentials kept offline, and a sign-in alert on both.
Why it matters
Conditional Access misconfigurations, an MFA service outage or a lost phone can lock every administrator out at once. Without a way in you wait on a support case while the tenant stays broken. Emergency accounts are the planned answer to that day.
Microsoft documents the pattern in Manage emergency access accounts in Microsoft Entra ID, including why the accounts should be cloud-only, use the tenant's own onmicrosoft.com domain and be excluded from at least some policies. This is a manual check: the dataset marks it Manual, because an account is only an emergency account by intent, which a script cannot read.
How to check it yourself
In the Microsoft Entra admin center open Identity > Roles & admins > Global Administrator and review the assigned users. Look for two accounts that are clearly named for the purpose, use the onmicrosoft.com domain and are not tied to a person. Then open Protection > Conditional Access > Policies and confirm the accounts are handled deliberately in each policy (excluded, or covered by a phishing-resistant method).
Connect-MgGraph -Scopes "RoleManagement.Read.Directory","User.Read.All"
$role = Get-MgDirectoryRole -Filter "displayName eq 'Global Administrator'"
Get-MgDirectoryRoleMember -DirectoryRoleId $role.Id -All | ForEach-Object {
Get-MgUser -UserId $_.Id -Property DisplayName,UserPrincipalName,OnPremisesSyncEnabled,AccountEnabled
} | Select-Object DisplayName,UserPrincipalName,OnPremisesSyncEnabled,AccountEnabledThis only lists candidates. You decide whether two of them really are emergency accounts.
How to fix it
- Create two cloud-only users on the onmicrosoft.com domain with non-obvious names that do not reveal their role.
- Give each a long random password, store the two halves in separate secure locations such as a safe, and do not tie the account to a person's phone.
- Assign the Global Administrator role permanently to both (an eligible-only assignment would defeat the purpose).
- Register a phishing-resistant method, for example a FIDO2 security key, and keep it with the password.
- Decide your Conditional Access handling and document it. Many tenants exclude these two accounts from every policy except one that requires a phishing-resistant method.
- Create an alert on any sign-in by either account, and test the sign-in on a schedule you set.
Follow the full steps in Microsoft's guide. ConfigCobra itself never changes your tenant; it reports the gap and you create the accounts.
What changes when you fix it
Day to day, nothing changes for users: the accounts are never used for normal work. For administrators, you take on two duties: protecting the credentials and responding when the alert fires. Because the accounts sit outside normal policy, any sign-in that is not a test should be treated as a possible incident. After creation, review the accounts whenever you change Conditional Access, so a new policy does not lock them out by accident.
Included in
| Benchmark | CIS ID | Profile |
|---|---|---|
| CIS Microsoft 365 Foundations v7.0.0 | 1.1.2 | E3 Level 1 |
Go further
- Microsoft 365 admin center15 controls in this section
- CIS Microsoft 365 Foundations v7.0.0160 controls
- CIS Microsoft 365 Foundations checklistEvery control in one list, as CSV
- RemediationSee what a fix changes in your tenant before you apply it, then use the generated script
- Monitoring & DriftDaily scans, drift detection and email alerts when a control regresses
Check this on your Microsoft 365
ConfigCobra runs this check with every other control of the CIS Microsoft 365 Foundations Benchmark, read-only.