← All recommendations

Azure identity

Scope Azure role assignments to the resource that needs them

A practical review sequence for identifying broad Azure permissions and reducing scope without disrupting a workload.

Published Last reviewed
Azure RBACleast privilegemanaged identity

Recommendation

Grant a principal only the permissions it needs, at the narrowest scope that supports its work. Azure role assignments combine a principal, role definition, and scope. A broader scope can make the same role apply to more resources than intended.

A review sequence

  1. Inventory role assignments at management-group, subscription, resource-group, and resource scopes. Record the principal, role, scope, owner, and business purpose.
  2. Identify broad or privileged assignments and confirm whether the principal still needs them. Include users, groups, service principals, and managed identities.
  3. Confirm the exact operations and resources the workload requires with its owner. Prefer an appropriate built-in role; use a custom role only when built-in roles do not fit and a responsible team can review the permissions.
  4. Pilot a narrower assignment in a non-production scope or representative workload. Observe expected activity and investigate denied operations before removing the prior grant.
  5. Remove superseded assignments through the normal change process. Record the approver, effective scope, validation evidence, and review date.

What to validate

  • The principal can perform its documented task against the intended resource.
  • The principal cannot perform unrelated privileged tasks within the reviewed test scope.
  • The role assignment uses the intended principal, role, and resource scope.
  • Workload owners and responders know how to request and review access changes.

Treat a successful application workflow as one piece of evidence. It does not prove every permission path is least-privileged; review effective access and test relevant denied and allowed operations within an authorized scope.

Common mistakes

  • Keeping a subscription-wide grant because it was faster to set up.
  • Choosing a role by its name without checking the permissions relevant to the task.
  • Removing access before the workload owner has tested a realistic operation.
  • Treating a list of assignments as proof that inherited or data-plane permissions were fully reviewed.

Example access decision (illustrative)

Principal: named workload identity
Role: minimum role that supports the required operation
Scope: the specific resource or resource group
Owner: workload team
Review: after a material workload or permission change

This is a review template, not an Azure command or a prescribed role assignment. Confirm the correct role and scope for the workload before applying changes.

References

References checked October 11, 2026. Product behavior and service terms can change; use the current official documentation.