Skip to content
Least Privilege Principle

Role assignment

A role assignment attaches a role definition to a principal at a scope in Azure. It decides who gets the permissions, where they apply, and, with a condition, under what circumstances. One person can hold several assignments at different scopes, and the assignments combine.

All terms ยท Open the calculator

An example, sourced

Microsoft's documentation says a role assignment is associated with a role definition, and lists properties including the scope and the roleDefinitionId, the unique ID of the role.

Why it matters here

Least privilege in Azure is mostly decided at assignment time, by choosing the role, the principal and the scope together.

Sources

  1. https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments, read 16 Nov 2026

Last reviewed 16 Nov 2026.