Scope application access to the intended Exchange mailboxes
Key takeaway
Microsoft documents scoped application RBAC in Exchange Online. Verify separately granted Microsoft Entra permissions, since grants from different sources may combine.
Lessons in this path
How it works
Have platform owners verify the mailbox allowlist and required operations. Check effective access in the pilot account. Separate draft access from send rights and review any broad rights on the app registration.
Worked example
A drafting integration may read the designated queue and prepare a draft. Another unit’s mailbox remains outside approved scope.
How do Exchange RBAC and Entra permissions interact?
Exchange Online offers RBAC for Applications, a model in which an application receives a role (for example read or write mail) only within a scope, such as a group of mailboxes. In parallel, the same app registration may hold Graph application permissions such as Mail.Read in Microsoft Entra ID, which apply tenant-wide. Microsoft describes that grants from both sources are additive. A carefully scoped Exchange assignment therefore achieves nothing if a tenant-wide permission is also granted in Entra.
Older environments sometimes still use Application Access Policies for restriction. Agree with the platform team which model applies in your tenant and whether a migration is planned before you fix the pilot configuration.
Step by step: scope and evidence the permissions
The exact command sequence depends on your environment and should be taken from current Microsoft documentation. The logic stays the same.
- Create a dedicated app registration for the pilot; do not reuse an existing one.
- Group the permitted mailboxes in a dedicated group or by a distinct attribute and build a scope from it.
- Assign only the role needed: read for triage, read/write for drafts. Send rights separately and initially not at all.
- Check in Entra that the app holds no equivalent tenant-wide Graph permissions, and document the result with a screenshot or export.
- Test effectiveness: access one permitted and one non-permitted synthetic mailbox; Microsoft also provides a cmdlet for testing service principal authorization.
- Protect the app credentials with a certificate or managed identity instead of a shared secret and track expiry dates in the operations calendar.
Acceptance checklist for platform administration
This list works as an annex to the operational approval. Each item needs evidence, not just a tick.
| Check | Expectation | Evidence |
|---|---|---|
| Access to permitted test mailbox | Allowed | Test log with timestamp |
| Access to non-permitted test mailbox | Denied | Error recorded in log |
| Sending from the pilot mailbox | Denied | Test log |
| Tenant-wide Graph permissions | None | Export of app permissions |
| Credentials | Certificate with expiry, owner named | Operations manual entry |
Going deeper: drift, recertification and reuse
Permissions drift. A colleague adds a Graph permission briefly for troubleshooting, the scope group grows through dynamic membership rules, or a second application reuses the same registration. Plan regular recertification, for example quarterly, comparing the mailbox list, roles and Entra permissions against the register entry. Many enterprises can automate this with existing identity governance tooling.
Also treat the combination of read access and an external model call as a risk in its own right: whoever takes over the app identity can exfiltrate content from every mailbox in scope. Egress restrictions, conditional access for workload identities and alerts on unusual retrieval volume limit this damage.
A scope is only as good as the group behind it. Use static, reviewed memberships for pilot mailboxes.
Example: The forgotten legacy grant
Example (fictional): an industrial group configures an Exchange scope for three procurement mailboxes for a triage pilot. Acceptance with the non-permitted test mailbox fails: access succeeds. The cause is a Mail.Read application permission from an earlier archiving project that sat on the same app registration.
The team creates a new registration, removes the legacy grant after agreeing with the archiving owner and repeats acceptance. Since then, an export of Entra permissions is mandatory documentation for every mail pilot.
Common mistakes
- Checking only the Exchange scope and overlooking tenant-wide Graph permissions.
- Granting write and send rights together because they will be “needed later anyway”.
- Using dynamic groups as scope without anyone monitoring their rules.
- Client secrets without expiry monitoring, so the pilot silently fails on a given date.
Frequently asked questions
Is a developer policy enough instead of technical scoping?
No. For applications with access to mailbox content, scoping should be technically enforced and evidenced by a negative test.
How often should the permissions be reviewed?
As orientation, at every change of mailbox list or function, plus at a fixed cadence set by your identity governance.
Try it yourself
Prepare acceptance checks using one allowed and one disallowed synthetic mailbox. Record intended and effective rights.
Check your result
Only the approved application reaches the intended mailboxes, and sending is separately controlled.