Application Permissions Only
Problem
ION workloads call Microsoft Graph, Defender, customer tenants, Azure resources, and each other. Entra offers two permission types for this. Application permissions belong to the workload. Delegated permissions let an application act on behalf of a signed-in user, bounded by what that user can do.
Delegated permissions in a workload blur accountability, depend on a user session the workload does not have, and invite user tokens to travel past the boundary where they were issued. In a multi-tenant security platform, that is a path to privilege escalation and to an unclear audit trail.
Solution
Workloads act with application permissions or managed identity only.
- Workload to ION APIs and Azure. Use the microservice’s user-assigned
managed identity,
Ion.*application roles, and Azure RBAC. - Workload to customer tenants. Use a multi-tenant application whose application permissions the customer grants by admin consent. Authenticate the application with a federated credential from the workload’s managed identity.
- Workload to customer Azure resources. Use the hollow application, which declares no API permissions, so the customer assigns Azure RBAC.
- End-user sign-in. A shell signs the user in with delegated scopes, which are the standard OpenID Connect scopes and the sign-in scope exposed by the ION API application. These identify the user only. The user token terminates at the BFF, and there is no on-behalf-of exchange.
- Human access to customer environments. People receive user permissions, not workload permissions: GDAP and URBAC roles, Lighthouse Azure RBAC, B2B guest access, or Teams membership. The customer grants and can revoke them.
Two meanings of delegated
Delegated administration in GDAP and Azure Lighthouse means a customer delegates administrative access to named groups. It is about people. Delegated permissions in Entra are about applications acting for a user. ION workloads use the first kind only for human access and never use the second kind.
The recorded exception
Microsoft Graph offers only a delegated permission for sending Teams channel messages. Pigeon therefore posts as a dedicated user service account with the ROPC grant. It is the only accepted delegated workload credential in ION, recorded in ADR-0013 § 4, and bounded by the identity standard. Any new ROPC or delegated workload path needs a new ADR exception.
When to use
- Every workload that calls Graph, Defender, a customer tenant, an ION API, or an Azure resource.
- Every design review of a new integration. Ask first whether an application permission exists for the operation.
Not for: end-user sign-in, which is delegated by nature, and human access to customer environments, which is user access by nature.
Consequences
Positive
- Workload access is auditable and attributable to the workload, not to whichever user last signed in.
- User tokens cannot leak into downstream calls.
- Permissions can be reviewed per application and per customer.
Negative
- Some operations have no application permission, so they need an exception (Teams channel messages today).
- Application permissions are not bounded by a user’s rights, so they must be kept narrow, and customer-side scoping must be validated. For mailbox access this is Exchange Online RBAC for Applications.
Failure modes
- A workload that holds a delegated scope “just in case”.
- A BFF that exchanges the user token on behalf of the user for a downstream call.
- A new ROPC path added without an ADR.
- A GDAP or Lighthouse group described as “delegated permissions” in a review, which sends reviewers to the wrong control.
References
- ADRs: 0010, 0011, 0013.
- Principles: 12, 22.
- Capabilities: Security architecture, Identity standard.
- Related: Auth / AuthZ.
Applied in
- Every BFF and microservice (managed identity and
Ion.*roles) - Customer-tenant access applications for Graph, Defender for Endpoint, and mailbox analysis
- The hollow application for customer Azure resources
- Pigeon Teams publishing, the single recorded exception