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

Re: How to get All Groups from the Organization

$
0
0

Following works on 10.2 M10.

 

//get WTOrganization

WTOrganization myOrg = WTOrganization.newWTOrganization("Demo Organization");

final DirectoryContextProvider dirContProvider = (DirectoryContextProvider) myOrg;

 

//get Enumeration for groups in WTOrganization

final Enumeration groupsEnum = OrganizationServicesHelper.manager.findLikeGroups("*", dirContProvider);

 

while (groupsEnum.hasMoreElements()) {

    final WTGroup myGroup = (WTGroup) groupsEnum.nextElement();

    System.out.println( "myGroup: " + myGroup.getName());

}


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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