Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 15, 2006 at 06:21 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2006 at 07:45 AM

    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

    Add comment
    10|10000 characters needed characters exceeded