Exchange application access policies must be configured
Part of Maester · Entra ID · App consent and permissions · All checks
Invoke-Maester -TestId MT.1058Overview
Section titled “Overview”This check evaluates legacy application access policies in Exchange Online for applications with Microsoft Graph mail permissions.
These permissions grant access to every mailbox unless an application access policy restricts them.
Microsoft Exchange related permissions that should be secured by application access policies include:
- Mail.Read
- Mail.ReadBasic
- Mail.ReadBasic.All
- Mail.ReadWrite
- Mail.Send
- MailboxSettings.Read
- MailboxSettings.ReadWrite
- Calendars.Read
- Calendars.ReadWrite
- Contacts.Read
- Contacts.ReadWrite
This check requires a RestrictAccess policy for each application. A DenyAccess policy only denies access to mailboxes in its scope; it does not restrict access to mailboxes outside that scope and does not satisfy this check.
Remediation action
Section titled “Remediation action”Microsoft has replaced application access policies with RBAC for Applications and advises against creating new application access policies.
- For an app still using legacy policies, review its existing policies and confirm a matching
RestrictAccesspolicy limits it to the intended mailboxes. A deny-only policy does not provide that limit. - For new configurations or migration, follow Microsoft’s RBAC for Applications guide to assign the required Exchange application role with a mailbox scope.
- Remove equivalent or broader Microsoft Graph application permissions from the app’s Entra grants after migration. Entra and Exchange grants are additive; retaining an unscoped Entra grant defeats the Exchange scope. See MT.1252 for overlapping grants.
- Verify the app against both an intended mailbox and a mailbox outside its scope.
Test-ServicePrincipalAuthorizationevaluates the Exchange RBAC assignment; it does not include separate Entra grants.
MT.1058 does not evaluate RBAC assignments. An app whose mail permissions are granted only through Exchange RBAC is outside this check’s scope.
For existing application access policies, inspect and test the policy configuration with:
Connect-ExchangeOnlineGet-ApplicationAccessPolicyRelated links
Section titled “Related links”- Application access policy replacement notice - Microsoft Learn
- RBAC for Applications in Exchange Online - Microsoft Learn
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | MT.1058 |
| Severity | Medium |
| Suite | Maester |
| Product | Entra ID |
| Related products | Exchange Online |
| Feature | App consent and permissions |
| Area | Applications and workload identities |
| Resource type | ServicePrincipal |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1114.002 Remote Email Collection |
| Supports controls | nist-800-53-r5:AC-6, nist-800-53-r5:AC-3 |
| PowerShell test | Test-MtSpExchangeAppAccessPolicy |
| Services | Graph, ExchangeOnline |
| Long running | Yes |
Source
Section titled “Source”- Test:
tests/maester/entra/Test.MT.1058.ps1 - Documentation:
tests/maester/entra/Test.MT.1058.md
About this check
- Severity
- Medium
- Effort to fix
- Medium
- Impact on users
- Low
- Product
- Entra ID
- Feature
- App consent and permissions
- Area
- Applications and workload identities
- Suite
- Maester