Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi Can any one help me how I can get All groups from any particular WTOrganization using Windchill API
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());
}