I am using vim25 library to established connection with vCenter and I am able to login with following code,
vimport.login(serviceContent.getSessionManager(), username, password, null);
Now, I want to check whether this user has admin privileges or not, How can we achieve in Java with the help of vSphere client SDK?