Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Webservice getGroups scope to stem

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Webservice getGroups scope to stem

Chronological Thread 
  • From: Chris Hyzer <>
  • To: Tom Barton <>
  • Cc: Colin Hudler <>, "" <>
  • Subject: RE: [grouper-users] Webservice getGroups scope to stem
  • Date: Thu, 28 Jan 2010 23:35:00 -0500
  • Accept-language: en-US
  • Acceptlanguage: en-US

If you want to find all groups a person is a member of starting at a stem
(including all substems), then try this 1.4 branch method (I believe it was
introduced around april 13, 2009):

Set<Group> groups =
grouperSession, aSubject, Privilege.getAccessPrivs(), null);

If it isn't there or doesn't work let me know.


-----Original Message-----
From: Tom Barton

Sent: Thursday, January 28, 2010 11:12 AM
To: Chris Hyzer
Cc: Colin Hudler;

Subject: Re: [grouper-users] Webservice getGroups scope to stem

Chris, is there a way to do this if the API was used instead of web
services? Just curious.


Chris Hyzer wrote:
> I don't think findGroups can find based on membership, only by group
> attribute. I think you want to use getGroups, though limiting by stem is
> 1.6+
> Thanks,
> chris
> -----Original Message-----
> From: Colin Hudler
> [mailto:]
> Sent: Thursday, January 28, 2010 10:55 AM
> To:
> Subject: [grouper-users] Webservice getGroups scope to stem
> Greetings,
> Apologies if this is a FAQ or is obvious. I couldn't find it. Using
> the webservice, I want to call findGroups on one subject, starting at a
> particular stem. This is what I tried:
> /web/servicesRest/xml/v1_4_000/subjects/30505932A/groups?queryFilterType=FIND_BY_STEM_NAME&stemName=uc:orgs
> and several variations on the URL, which obviously don't work. Find
> Groups page <>
> has this to say:
> "For AND|OR|MINUS you can link up multiple queries into one"
> which is what led me to believe this was possible in the first place.
> GetMemberships (1.6.x only!) is more explicit about it
> <>:
> "Can filter for all memberships directly in a stem, or in any substem of
> a stem"
> Is there any way to do the same with findGroups in 1.4 or 1.5?

Archive powered by MHonArc 2.6.16.

Top of Page