Azure Containers built-in role

Azure Kubernetes Service Namespace User

Reads an AKS managed namespace ARM resource and retrieves that namespace's connection credentials. It grants no Kubernetes DataActions; in-cluster access requires a separate AKS RBAC data role assigned on the managed namespace resource for a Microsoft Entra-enabled cluster.

Role-definition permissions are imported from Microsoft Learn. Practical scope, use cases, prerequisites, best practices, security considerations, assignment guidance, and relationships have been reviewed against the official sources below.

Role definition ID: c9f76ca8-b262-4b10-8ed2-09cf0948aa35

Control-plane actions (2)

Data-plane actions (0)

None — this role grants no data-plane (data access) actions.

Excluded actions (0)

None

Assignable scopes (1)

Practical scope

Assign on the individual managed namespace resource. A parent assignment can be inherited by multiple managed namespaces and should be used only when the same principal is intentionally a user of each one.

Common use cases (1)

Prerequisites (2)

Best practices (2)

Security considerations (2)

Assignment guidance

Assign Azure Kubernetes Service Namespace User directly on the existing managed namespace, then assign the least AKS RBAC Reader, Writer, Admin, or Cluster Admin data role required at that same managed namespace scope. Validate credential retrieval and Kubernetes authorization independently.

Related roles (1)

Common questions

When should I assign the Azure Kubernetes Service Namespace User Azure role?

Assign Azure Kubernetes Service Namespace User when you need to: Allow an application-team identity to view an existing managed namespace and retrieve its credentials while a separate AKS RBAC role defines the Kubernetes operations allowed inside that namespace.. Practical scope: Assign on the individual managed namespace resource. A parent assignment can be inherited by multiple managed namespaces and should be used only when the same principal is intentionally a user of each one.

What permissions does the Azure Kubernetes Service Namespace User Azure role grant?

The role definition grants 2 combined control-plane and data-plane actions. Representative operations include: Microsoft.ContainerService/managedClusters/managedNamespaces/read; and Microsoft.ContainerService/managedClusters/managedNamespaces/listCredential/action. Review the permission sections above for the complete definition and exclusions.

What are the security risks of the Azure Kubernetes Service Namespace User Azure role?

Key considerations when assigning Azure Kubernetes Service Namespace User: The retrieved credential is sensitive connection material, but this role alone does not authorize Kubernetes object access because it has no DataActions.; and A parent Azure assignment can unintentionally grant user access to multiple inherited namespaces.. Follow the assignment guidance above and use the narrowest practical scope.

Editorial sources (7)

Official Microsoft Learn documentation →