We are developing a remote plug-in for the vSphere client. Within our plug-in's interface, we want to show/hide the appropriate UI elements depending on the role of the logged in vSphere user. For example, if we create new custom roles for "Example Plugin Admin" and "Example Plugin Read-Only" and assign them to vSphere users, is there a way within our remote plug-in application to determine which of these roles is assigned to the logged-in user?
Also, is there a way to hide our remote plug-in menu option from the vSphere client entirely if the user does not have any of the appropriate roles assigned?
The versions of vSphere client we are planning to support with this remote plug-in are 7.0 U1 and 6.7 U3.
I would greatly appreciate any guidance, thanks!