Configuring Emergency Access Accounts
Emergency access accounts (also known as "break glass" accounts) are highly privileged accounts that should be excluded from all Conditional Access policies to ensure you can always access your tenant in case of a lockout scenario.
Maester includes tests that verify your emergency access accounts are properly excluded from all Conditional Access policies. By configuring your emergency access accounts in the Maester configuration, these tests can validate that your specific accounts are correctly excluded.
Why Configure Emergency Access Accounts?
By default, Maester attempts to auto-detect emergency access accounts by looking for users or groups that are consistently excluded from all Conditional Access policies. However, explicitly configuring your emergency access accounts provides:
- Accurate testing - Ensures the exact accounts you intend as emergency access are being validated
- Clear documentation - Your configuration serves as documentation of your emergency access strategy
- Support for multiple accounts - Define multiple users and groups as emergency access accounts
Configuration Format
Emergency access accounts are configured in the GlobalSettings section of your custom maester-config.json file.
Basic Structure
{
"GlobalSettings": {
"EmergencyAccessAccounts": [
// Your emergency access accounts and groups
]
}
}
Supported Parameters
Each entry in the EmergencyAccessAccounts array supports the following parameters:
| Parameter | Required | Description |
|---|---|---|
Type | Yes | The type of object. Must be either User or Group |
Id | No* | The Object ID (GUID) of the user or group |
UserPrincipalName | No* | The UPN (email) of the user or group email address |
* You must provide either Id or UserPrincipalName for each entry.
Configuration Examples
Single Emergency Access User (using UPN)
{
"GlobalSettings": {
"EmergencyAccessAccounts": [
{
"UserPrincipalName": "BreakGlass1@contoso.com",
"Type": "User"
}
]
}
}
Single Emergency Access User (using Object ID)
{
"GlobalSettings": {
"EmergencyAccessAccounts": [
{
"Id": "00000000-0000-0000-0000-000000000001",
"Type": "User"
}
]
}
}
Emergency Access Group
If you use a security group to manage your emergency access accounts, you can configure the group instead:
{
"GlobalSettings": {
"EmergencyAccessAccounts": [
{
"Id": "00000000-0000-0000-0000-000000000002",
"Type": "Group"
}
]
}
}
Multiple Emergency Access Accounts
Microsoft recommends having at least two emergency access accounts. You can configure multiple users and groups:
{
"GlobalSettings": {
"EmergencyAccessAccounts": [
{
"UserPrincipalName": "BreakGlass1@contoso.com",
"Type": "User"
},
{
"UserPrincipalName": "BreakGlass2@contoso.com",
"Type": "User"
},
{
"Id": "00000000-0000-0000-0000-000000000002",
"Type": "Group"
}
]
}
}
When you configure both users and groups, Maester will verify that all configured accounts and groups are excluded from every Conditional Access policy.