Quantcast
Viewing all articles
Browse latest Browse all 144

How to get user with their respective role

Hi,

 

 

I want to get role of user by which I login.

 

I tried below sample code it shows all the roles at system level

 

for (ReferenceType roleRef : vcloudClient.getVcloudAdmin().getRoleRefs()) {
                Role role = Role.getRoleByReference(vcloudClient, roleRef);
                System.out.println("Role Name :" + role.getResource().getName()+"   Desc   "+role.getResource().getDescription());
            }

 

I want to get login user with their respective role at system as well as org level.How can I do that??

 

Pls help.

Thanks


Viewing all articles
Browse latest Browse all 144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>