VMware {code} Community
emscroger
Contributor
Contributor

Read only user?

Can some one explain how to determine if the current user in the vSphere web client is a read only user?   I know how to get the current UserSession from the service layer, and get the username.   How does one determine if the current user is readonly or not? 

Thanks

0 Kudos
1 Reply
laurentsd
VMware Employee
VMware Employee

By "read only" user I assume you mean that the user has the vSphere read-only permission set on all objects.  This can only be determined by calling the vSphere API in the java layer (using the current usersession) Sorry, we don't have any sample code using the vSphere permission API.  May be the vSphere Management API forum can help you.

0 Kudos