Controlling Access to Key Vault
This lesson explains the control and data planes of Key Vault, the built-in roles, and migration from access policies.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish the control plane from the data plane.
- Choose a least-privilege Key Vault role.
- Explain why assignments belong at vault scope.
- Describe how to migrate from access policies.
Control plane and data plane
Every request to Key Vault must pass authentication through Microsoft Entra ID and then authorization. Authorization depends on which plane the request uses. The control plane is Azure Resource Manager, at management.azure.com, and it manages the vault itself: creating it, changing its firewall, or deleting it. The data plane is the vault endpoint, at VAULT.vault.azure.net, and it reaches the contents: reading a secret or signing with a key.
This split allows a separation of duties. A platform team can manage vaults without being able to read what is in them, and an application can read one secret without being able to change anything. A person who has Contributor on a subscription can manage the vault but receives no data access through that role. If a vault uses the legacy access policy model, however, Contributor can add themselves to a policy, which is one reason to move to Azure RBAC.
The following diagram separates the two planes and what each controls.

Control plane or data plane?
Built-in roles
With Azure RBAC, the data plane uses dedicated roles. The naming pattern makes them easy to learn: User roles use objects, and Officer roles manage them. The following table lists the main roles.
| Role | Can do | Cannot do |
|---|---|---|
| Key Vault Administrator | All data plane operations on all object types | Manage the vault resource, or assign roles |
| Key Vault Reader | Read metadata of the vault and its objects | Read secret values or key material |
| Key Vault Secrets Officer | Manage secrets | Manage keys or certificates |
| Key Vault Secrets User | Read secret contents | Create or change secrets |
| Key Vault Crypto Officer | Manage keys, including rotation | Manage secrets |
| Key Vault Crypto User | Perform cryptographic operations | Manage keys |
| Key Vault Crypto Service Encryption User | Read key metadata and wrap and unwrap, for service integrations | Other key operations |
| Key Vault Certificates Officer | Manage certificates | Manage role assignments |
| Key Vault Certificate User | Read certificate contents, including the secret portion | Change certificates |
| Key Vault Purge Operator | Permanently delete soft-deleted objects | Read object contents |
| Key Vault Contributor | Manage vaults on the control plane | Reach any data plane contents |
A frequent exam distinction concerns Key Vault Secrets User and Key Vault Reader. Reader can see that a secret named db-password exists, but cannot see its value. Secrets User can read the value.
Key Vault data roles
Scope of assignment
Assign data roles at vault scope. Microsoft advises against assignments at the level of individual objects, except in a few cases such as sharing a single secret between applications, because per-object assignments are hard to manage and can reach limits. This guidance is the practical reason for one vault per application: the vault itself becomes the boundary.
Key Vault Data Access Administrator can be given a condition that restricts which roles a person may assign. This allows an application team to manage access to its own vault, limited to Key Vault data roles, without being given Owner. ABAC conditions on the data plane are in preview and apply to secrets only.
Migrating from access policies
Before Azure RBAC, vault access used access policies: a list on the vault that granted a principal permissions for keys, secrets and certificates. The model has several weaknesses. It has no separation between managing access and using a vault, it is limited to one scope, and it does not integrate with PIM.
To migrate, set the permission model to Azure RBAC, but only after creating equivalent role assignments, because setting the model makes existing access policies ineffective at once. Changing the model needs Microsoft.KeyVault/vaults/write, and the portal also needs the right to write role assignments.
-
Inventory
List the vault's access policies and map each one to a built-in role.
-
Assign
Create the role assignments in advance.
-
Switch
Change the vault's permission model to Azure RBAC.
-
Test
Confirm that each application can still reach what it needs, and that role assignments have propagated.
Moving to Azure RBAC
Least privilege for an application
A web app must retrieve a connection string from a vault at start-up. A separate certificate process must renew a certificate in the same vault. Security requires that neither workload can do the other's job, and that the operations team can manage the vault's firewall without seeing any secret. Which roles should you assign?
Give the web app's managed identity Key Vault Secrets User, because it needs to read a value. Give the renewal process Key Vault Certificates Officer, because it must manage certificates. Give the operations team Key Vault Contributor, which is control plane only.
Key Vault Administrator would suit either workload technically, but it fails the least privilege requirement. Key Vault Reader would not let the web app read the value. Contributor at subscription scope would give operators far wider rights than the vault alone.
A user holds Key Vault Reader. Can the user see the value of a secret?
Show answer
No. Key Vault Reader shows metadata only. Reading the value needs Key Vault Secrets User.
Exam Tips
Remember for the exam
- User roles use objects; Officer roles manage them.
- Key Vault Reader sees metadata, not values.
- Key Vault Contributor gives no data access under Azure RBAC.
- Create role assignments before switching a vault to Azure RBAC.