Skip to Content
author's profile photo Former Member
Former Member

Get Group Members with GP API

Hi Experts,

it is possible to get all the members of a group which is assigned to an action at GP?

What i want to do is to set a bool addicted to the group member status.

For Example:

Inputparameter: UserID

Member of Group 1 -> true

Member of Group 2 -> false

I follow the tutorial "Implementing a Background Callable Object", but i found only the possibility to get the role users.

thanks for your help!

Ok, i try it with isMemberOfGroup(), but how can i get a list of current users.

Message was edited by:

Wolfgang Plank

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 02:00 PM

    Solved 😊

    IUser umeUser = UMFactory.getUserFactory().getUserByLogonID(userId);
    boolean status = umeUser.isMemberOfGroup(groupName, true);
    user.setAttributeValue("groupMember", status);

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Plank,

      I followed "Implementing and Exposing a Background Callable Object" tutorial of NWDS 7.1. When i try to create a callable object for in GP, i am getting error message saying " Cannot find this class name" in Step 2. Could you please help?



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.