``` oot@controlplane:~# kubectl auth can-i get pv --as michelle Warning: resour . . .

Basavraj Nilkanthe:

oot@controlplane:~# kubectl auth can-i get pv --as michelle
Warning: resource 'persistentvolumes' is not namespace scoped
yes
root@controlplane:~# kubectl auth can-i list pv --as michelle
Warning: resource 'persistentvolumes' is not namespace scoped
yes
root@controlplane:~# kubectl auth can-i create pv --as michelle
Warning: resource 'persistentvolumes' is not namespace scoped
yes

Mohamed Ayman:
For testing service account:

kubectl auth can-i
<verb> <resource>
–as=system:serviceaccount:<namespace>:<serviceaccountname>
[-n <namespace>]

Basavraj Nilkanthe:
Hello @Mohamed Ayman are you getting my question… I wanted to test scenario with clusterrole and rolebinding for user – michelle…

Anil:
created a role… and rolebinding for PV. But I thought PV was cluster wide object.