Microsoft Graph permissions come in two types, and the same permission name can mean very different access depending on which one you grant.
- Delegated: the app acts on behalf of a signed-in user. What it can reach is limited to what that user can reach.
- Application: the app acts as itself, with no user. The permission applies across the whole tenant, and it requires admin consent.
Same name, different blast radius. Mail.Read as a delegated permission reads the signed-in user's mail. Mail.Read as an application permission can read every mailbox in the tenant.
When reviewing a service principal:
- List its application permissions first. They're the ones that act tenant-wide without a user.
- Ask whether a user is actually present. If one is, delegated permissions are usually enough.
- Narrow application permissions where Microsoft supports it:
Sites.Selectedfor specific SharePoint sites, or RBAC for Applications in Exchange Online to limit mailbox access. - Record why each permission exists. Granting it in code makes it visible; it doesn't make it minimal.
More context: Azure identity as code and credential-free pipelines