# Manage access to a namespace

{% hint style="info" %}
Kubernetes role-based access control (RBAC) must be enabled and working before access control will work in Portainer.
{% endhint %}

From the menu select **Namespaces** then select **Manage access** on the same row as the namespace you want to manage.

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-1368dd9d4c440c39a147c12e65397e778352d57b%2F2.20-namespaces-access.gif?alt=media" alt=""><figcaption></figcaption></figure>

Select the users/teams who will have access then click **Create access**.

{% hint style="info" %}
Users or groups with cluster-wide roles (such as the Operator role) cannot be assigned to individual namespaces, as their cluster-wide nature applies to all namespaces in the environment.
{% endhint %}

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-883dcfd641838bea988982c2032833f2b666fbbb%2F2.20-namespaces-access-create.png?alt=media" alt=""><figcaption></figcaption></figure>
