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: Julio Polo <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] API for listing group dependencies
  • Date: Wed, 16 Oct 2013 16:40:39 -1000

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?

-julio


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.

 

Chris

 

 

 

 

From: [mailto:] On Behalf Of Julio Polo
Sent: Wednesday, October 16, 2013 8:33 PM
To:
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