Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] API for listing group dependencies

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] API for listing group dependencies

Chronological Thread 
  • From: Chris Hyzer <>
  • To: Julio Polo <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] API for listing group dependencies
  • Date: Thu, 17 Oct 2013 02:45:40 +0000
  • Accept-language: en-US

Yeah, the subject which is the group is not a “member” of the overall group J  It would only return groups where it is a member directly or indirectly…


Note that unions are sort of like members, but it wont return those either.  And speaking of which, for performance reasons, you should only use members and never unions.





From: Julio Polo [mailto:]
Sent: Wednesday, October 16, 2013 10:41 PM
To: Chris Hyzer
Subject: Re: [grouper-users] API for listing group dependencies


Thanks Chris.  After trying it again with a different group, I noticed that getGroups will return both, direct and indirect memberships, but it won't include composite groups that depend directly or indirectly on that group.  I performed a simple test where a composite C is defined as A intersection B.   If I call getGroups on A, I don't get back C.  Is this the intended behavior for getGroups on a group subject?



On Wed, Oct 16, 2013 at 3:12 PM, Chris Hyzer <> wrote:

It shouldn’t work like that.  When you call it for a group, are you doing the same thing as you would for a person, but the sourceId is g:gsa, and the subjectIdentifier is the groupName (or the subjectId id the groupUuid?).  The output for any subject should be consistent.







From: [mailto:] On Behalf Of Julio Polo
Sent: Wednesday, October 16, 2013 8:33 PM
Subject: [grouper-users] API for listing group dependencies


When calling the getGroups web service on a person, I can get an exhaustive list of all groups that the person is a member of, regardless of the depth of indirect membership.

If I attempt the same call with a group 'foo', I only get the immediate groups that have group 'foo' as a member. I do not get all groups that depend indirectly on 'foo'.  

Is there a way to accomplish this, short of writing a recursive method that calls getGroups?   During the recursion, I also need to check if the group is a factor in a composite.  What do I call for that?

Julio Polo
University of Hawaii


Archive powered by MHonArc 2.6.16.

Top of Page