Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2006 at 06:21 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.