Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: How to get the group names of the user who has logged in .Need to achieve this using Windchill API.

$
0
0


You can use below snippet to fetch the group of a user:

 

Enumeration enumeration = OrganizationServicesHelper.manager.parentGroups(SessionHelper.manager.getPrincipal(),false);

while (enumeration.hasMoreElements()) {

  String groupName = ((WTPrincipalReference)enumeration.nextElement()).getPrincipal().getName();

}

 

Let me know if you need more info.


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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