My webMethods Server enables you to create a role and populate it with both users and groups. In some cases, you may want to query the role to obtain all user members, including iterating through the members of an included group. You can accomplish this with the Common Directory Service (CDS) API.
For example, suppose a manager wants to search for a role and then assign a collaboration task to each member of that role. If the role consists of 3 users and 1 group of 5 users, a total of 8 collaboration tasks would be created. This sample code can be used to obtain the individual user names for each task assignment, using both the individual user names and the user names in the group.
For general information about the Common Directory Services API, see the wiki article Managing Users with the Common Directory Service API. To see the Javadocs for Common Directory Services API, go to the Software AG documentation web site.