VMware {code} Community
Prak5192
Contributor
Contributor

How can i get the logged in user roles and privileges by using PropertyProviderAdapter interface in vsphere web client.

How can i get the logged in user roles and privileges by using PropertyProviderAdapter interface in vsphere web client. I am using vCenter 6.5 and its java SDK.

1 Reply
_vladi_
VMware Employee
VMware Employee

If you want to do filtering (show/hide) of your views based on roles and privileges you can use the <privilege> tag inside the <metadata> tag of you extension.

If you want to really fetch the roles and privileges of a user from the vCenter the vSphere Client SDK does not provide this. Instead, please check if vSphere Web Services SDK (vim25.jar) will help - you can get more assistance on it on the vSphere Management SDK forum section.

Cheers,

Vladi