Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] API to obtain "set of groups that THIS GROUP is a member of "

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] API to obtain "set of groups that THIS GROUP is a member of "


Chronological Thread 
  • From: "Redman, Chad" <>
  • To: Julio Polo <>, Steven Carmody <>
  • Cc: Grouper-Users <>
  • Subject: RE: [grouper-users] API to obtain "set of groups that THIS GROUP is a member of "
  • Date: Tue, 20 Mar 2018 03:08:59 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:AcL2hRLEMASDpxbyAdmcpTZWNBhigK39O0sv0rFitYgXKvz7rarrMEGX3/hxlliBBdydt6ofzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlGiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZXshfSTFPAp+yYYUMAeoOP+dYoJXyqFYVtxSyGRWgCfnzxjNUhHL727Ax3eQ7EQHB2QwtB9wCvmjKo9roMacdS+a1wLHVxjjdb/NZwyry5IbVeR0mvf6MXah/ftfJxkk1CQzKk1CQppbjPz6Oy+QNtXSU4/B+Wu2ylm4qsgd8qSWhyMcrj4nGnIMVylbc+CV4xoY1OcO3SFR9YdG6DJtcqTuWOJVrTcM/W21otyc6yqEGuZ6mZycG0pUnxxnZZveacIaI+gruWPuNLTp3nn5od7Cyiwy8/ES+0OHxV8a53E5IoydEiNXAq3MA2wLJ5sWJS/Zx5Fmt1DmA2gzL5OFLP0M5mbbeJpMk2LE9mYEcvljGEyPohUr6krKZe0An9+e06OnrfrDrqYWTOoJ7lA7zNLkllNalDuQiKAcOWnCW+eSi273n+k30WK1Eg+ExnKXFrZzWPNkVqLakDwNM1YYs8AiwAy2h0NQFgXkIN1VFeA+Bj4f0IV3OOOr4DfCjg1uyjDhr2/HGPrrnApnXKXjDjavhfbJ6605bywo/18xQ55VRCr0ZIfLzXFH+tMDAAxMkLwC5zPzrBdp/248EV2+DHLWVPaLdvFOQ4+IgOeiMZIsbuDbnLPgl4ubjgmM5mVAHYKamxYEXZ26lEfRjOUqZZ2HhgsoHEWgWpAYxUvHliECaXT5Je3myR7485i08CI++AofDXIetgKGZ3CilBJ1af31GCkuSHnfybIWJQPMMaCOJIs99iTwIS6KtS44n1RGyqgD60bxnIfTI+iEGr57sysV65/CA3S01oB5pC8Wam1mKS2Y8ymEVQz4x9KB2vkV8yxGO3bUux7RjCdFN6vUBeQ4gMJnQ3qQuEMz/RA/HSdyAUlOhTsSOCys2UdR3ztMTNRVTAdKn21r50iavCrlR35eLDZB+uvbX33H9ENxwx3PP0oE8iVJgT8dSYz71zpVj/hTeUtaa236SkLynIOFFhHbA
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

The getGroups used by WS is part of the Member class. If you start with a member object, you can call:

 

-          member.getGroups()

-          member.getEffectiveGroups()

-          member.getImmediateGroups()

 

And there are versions of these with more parameters, so you can query on privileges instead of membership, or even more complex queries.

 

If you have a group, the member is group.toMember()

 

If you have a subject, you can use MemberFinder.findBySubject(session, subject, false).

 

-Chad

 

 

From: [mailto:] On Behalf Of Julio Polo
Sent: Monday, March 19, 2018 4:54 PM
To: Steven Carmody <>
Cc: Grouper-Users <>
Subject: Re: [grouper-users] API to obtain "set of groups that THIS GROUP is a member of "

 

 

On Mon, Mar 19, 2018 at 10:19 AM, Steven Carmody <> wrote:

thanks very much !

That's the web service -- is there a corresponding method in the core (java) API ?

We have two different sets of programs, and need to know about both APIs.

On 3/19/18 4:02 PM, Julio Polo wrote:

You want this one:

https://spaces.internet2.edu/display/Grouper/Get+Groups

-julio


On Mon, Mar 19, 2018 at 9:58 AM, Steven Carmody < <mailto:>> wrote:

    Hi,

    I'm assuming there's a way to do this ... using the ADMIN GUI, and
    looking at a group, I can click "View entity details" and can request

      Show groups where this entity is an DIRECT member
      Show groups where this entity is an INDIRECT member
      Show all groups where this entity is a member (DIRECT or INDIRECT)

    I thought that getMemberships might do this, but it looks like it
    returns info about the members of a group.

    Is there a Web Service that provides this functionality ?

    Is that a method in the core API that provides this functionality ?

    thanks !

 

 




Archive powered by MHonArc 2.6.19.

Top of Page