Application Roles
V3 uses stable Ion.* application roles, defined on the ION Platform API app
(azsp-ontinue-rome-idm-ion-platform-{env}-01), for workload authorization to
ION APIs and for user roles that Signet resolves into MFE capabilities. Azure
RBAC and customer-tenant consent are separate authorization systems.
Prerequisites
- An API or resource owner and a security reviewer.
- A defined business resource, operation, callers, and enforcement points.
- An inventory search proving whether an existing role already expresses the permission.
- A migration and revocation plan if an older role overlaps.
- Declarative app-registration and Microsoft Graph assignment automation for every environment.
- For user roles: the Signet owner, because the capability mapping changes with the role.
Canonical vocabulary
Role values use:
Ion.<Resource>.<Operation>[.<Constraint>]
Examples of shape, not automatic grants, are Ion.SecurityIncidents.Read and
Ion.RemediationAction.Execute.
Resourceis a stable business capability in PascalCase. It is not a microservice, caller, team, environment, or project name.Operationis one explicit API-contract capability such asRead,Create,Update,Execute, or a deliberately definedReadWrite.Constraintis optional and used only for a stable authorization distinction such asAllorShared; never an environment, customer, caller, or temporary project name.ReadWritegrants only the operations documented by the API contract. It does not implicitly grant delete, administration, consent, or role management.- Dynamic customer, ownership, resource, and business constraints are enforced in the BFF and domain service rather than encoded as proliferating roles.
Select the member type
- Applications for microservice UAMIs and other application-only callers.
- Users/Groups for interactive assignments evaluated as user roles and mapped to capabilities by Signet.
- Both only when exactly the same permission semantics and enforcement are valid for both caller classes.
Never assign any Ion.* role to the rome auth identity. It exists only for Easy
Auth (App Service authentication).
Role and capability flow
Define and deploy a role
Propose the role
Owner: API owner
Write the proposed value, display name, precise allowed operations, excluded operations, member type, owning API, and business justification. Compare it with the inventory and reuse an exact semantic match; do not create caller-specific aliases.
Add the role to the Platform API app manifest
Owner: Platform identity
Add the role to the Platform API app’s version-controlled manifest for every required environment. Generate a new immutable role ID; never reuse one.
resource "random_uuid" "security_incidents_read" {}
resource "azuread_application_app_role" "security_incidents_read" {
application_id = azuread_application.ion_platform_api.id
role_id = random_uuid.security_incidents_read.id
value = "Ion.SecurityIncidents.Read"
display_name = "Read security incidents"
description = "Read security incidents through the documented incident API operations."
allowed_member_types = ["Application"]
}Do not publish fixed role or service-principal GUIDs in documentation.
Add enforcement
Owner: API owner and Service team
Add the route-level role check in APIM. Add customer and context enforcement in the BFF and caller, resource, tenant, operation, and business-rule enforcement in the domain service. Deploy the role definition before any assignment.
Update the Signet capability mapping for user roles
Owner: Signet owner
When an Ion.* user role is added, renamed through migration, or retired,
update Signet’s RolePermissionsMap (role to DomainEntity.Read or
DomainEntity.ReadWrite permissions) and RoleMfeAccessMap (role to MFEs the
user may load) in the same change set. Unknown roles contribute nothing, so a
role assigned before Signet knows it grants no capability; a role removed from
the map stops granting capability as soon as Signet is deployed.
Deploy Signet before assigning a new user role, and verify the capability
token for a test user contains the expected permissions and mfe_access.
See Capabilities and the
Signet design.
Assign the role
Owner: Platform identity, approved by the API owner
Assign the role to approved principals through declarative automation using
Microsoft Graph appRoleAssignments or the azuread provider. Resolve
principals, the resource service principal, and role IDs by stable declared
names at deployment time. Microservice assignments follow
Managed identity. User and group assignments go to
groups, not individuals, wherever possible.
New-MgGroupAppRoleAssignment `
-GroupId $group.Id `
-PrincipalId $group.Id `
-ResourceId $platformApi.Id `
-AppRoleId $appRole.IdDo not use AzureAD PowerShell. Do not make a production portal role or assignment the source of truth.
Update the catalogue
Owner: Platform identity
Update the role catalogue, caller-target matrix, Signet mapping reference, owner, review date, assignment justification, and revocation procedure.
Additive evolution
- Add a new role when semantics expand beyond an existing role.
- Keep the old role active during a measured migration window, mapped in Signet if it is a user role.
- Update callers, enforcement, and Signet mappings, then verify old-role usage is zero.
- Disable new assignment of the old role before removing existing assignments.
- Never rename a published value in place, reuse its immutable identifier for different semantics, or broaden it silently.
Positive validation
- Acquire a token using the intended principal for the Platform API audience and verify the expected
rolesclaim server-side without storing the token. - Call each operation explicitly included in the role contract.
- Confirm APIM accepts the route and the domain service permits only the intended customer and resource context.
- For user roles, confirm the capability token contains the mapped permissions and MFEs and the MFE loads.
- Confirm assignment automation is idempotent in each environment.
Negative validation
Verify denial for:
- a caller without the role;
- the correct role against the wrong audience or API;
- the correct role attempting an excluded operation;
- the correct role attempting another customer or unowned resource;
- a user role not yet present in the Signet maps (no capability granted);
- the rome auth identity or another microservice’s UAMI calling the route; and
- the old role after its assignment is revoked.
Record correlation IDs and decisions, never token bodies.
Rollback and revocation
- If a new role is unsafe, stop assigning it and disable affected routes or callers.
- Remove new assignments through the same declarative path, and remove the role from Signet’s maps for user roles.
- Restore prior APIM and service authorization policy without repurposing either role.
- Verify the revoked principal fails and unaffected principals still succeed.
- Remove a role definition only after all assignments, callers, Signet mappings, and telemetry usage are gone.
Ownership and evidence
The API owner owns role semantics and domain enforcement. Platform identity owns the catalogue and assignment automation. The Signet owner owns capability mappings. Security approves broad or customer-impacting permissions. Retain the role proposal, member-type decision, manifest diff, Signet mapping diff, assignment approvals, deployment result, positive and negative tests, usage review, migration evidence, and revocation result.