<p>Looking if the below scenario is possible or not -</p>

<p>Lets say user(<code>user1</code>) have access only to namespaces <code>default</code> and  <code>marketing</code>. </p>

<p>When we perform <code>kubectl get ns</code> it should display both namespaces.</p>

<p>No other namespaces should be displayed even if they exists because the <code>user1</code> does not have access to any other namespaces.</p>

<p>We could relate this scenario with the databases where a user can see only the databases they have access to when <code>show databases</code> is performed</p>

Avinash Reddy
<p>This isn't possible in Kubernetes. Namespaces are the resources providing the scoping mechanism to limit visibility into other resources. There's no meta-namespace that provides scoping rules for namespaces.</p>
