Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

LDAP Distribution List

Hello,

Using the following code I was able to read the distribution list from LDAP

try {

IGroupFactory grpFact = UMFactory.getGroupFactory();

IGroupSearchFilter searchFilt = grpFact.getGroupSearchFilter();

searchFilt.setUniqueName("*", ISearchAttribute.LIKE_OPERATOR, true);

ISearchResult srchRslt = grpFact.searchGroups(searchFilt);

while(srchRslt.hasNext()) {

String uniqueID = (String)srchRslt.next();

IGroup thisGrp = grpFact.getGroup(uniqueID);

String name = thisGrp.getDisplayName();

showGroupsNode = wdContext.createShowGroupsElement();

showGroupsNode.setAllGroups(name);

wdContext.nodeShowGroups().addElement(showGroupsNode);

}

Now how do I extract the email address of the distribution group from the object thisGrp above.

Thanks,

Sudhakar

Former Member
Not what you were looking for? View more on this topic or Ask a question