cancel
Showing results for 
Search instead for 
Did you mean: 

How to display the list of groups that the selected user belong to?

Former Member
0 Kudos

Hi all,

I have a specific requirement to develope using Webdynpro. I want to display the list of the groups a user belong to? i.e . The groups assigned to the selected user. Could some one help me . I promise to award points for the solution.

Thank you in advance

Regards

Maruti

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

use this code

IGroupFactory grpFact = UMFactory.getGroupFactory();

IGroupSearchFilter grpFilt = grpFact.getGroupSearchFilter();

grpFilt.setSearchAttribute(IPrincipal.DEFAULT_NAMESPACE,

IPrincipal.DESCRIPTION,desc,

ISearchAttribute.LIKE_OPERATOR,false);

ISearchResult result = grpFact.searchGroups(grpFilt);

while (result.hasNext()) {

String grpId = (String) result.next();

IGroup thisGroup = grpFact.getGroup(grpId);

String grpName = thisGroup.getUniqueName();

...

}

Regards

Nidhideep

Former Member
0 Kudos