Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] web services, get groups, seems to be returning a subset ?

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] web services, get groups, seems to be returning a subset ?

Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Steven Carmody <>, Grouper-Users <>
  • Subject: RE: [grouper-users] web services, get groups, seems to be returning a subset ?
  • Date: Thu, 10 Aug 2017 19:10:16 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:QImczxDL11QtauGEl/UQUyQJP3N1i/DPJgcQr6AfoPdwSPX+o8bcNUDSrc9gkEXOFd2CrakV26yO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMhzexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iScHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzdb7fc9wHX2pMRsZfWTJcDIOgYYUBDOQBMuRZr4bhqFQDtgGxCRWwCO711jNEmn370Ksn2OohCwHG2wkgEsoAvHrWrNT0NbkdUfqtwKLV0zjDb+lW2Tbm6ITGbxsspvSMUq5wccvRyEggCRnFg06RqYz+IzyZzPkNs3CF4OpmU+KjkXAopBxsojW2wMonl4rHhpoNx1za7yp13Js5KNilREJmfNKpFZVQui6GO4dqR84vQX9ntSkmxrADvJO3YjQGxZc/yxLCZfGLb5KE7xb+WOqLPzt0mXZodKiiixuw8EWtzPD3WNOu31ZQtCVFl8HBtnAT2BzX7ciKUuNz81um1zqTygzf8/xKL1gpmabCLJ4u2aA/moAUsUTeAi/5g0L2jLKQdko54OSo8/7nYrL6ppCCK4B0lgD+MqMomsClBuQ4LxQOX2yc+eS7173v51H2QLJPjvEuk6nZto7VJdgDq6KnGQBZzpsv5hOiAzu7zdgVmHcHIV1ZdB6bioXkOU/BLf/kAfq6hlmgjitnyvPeMr3kGJrNL3zDkLn7fbZ67k5R0A8zwsxf55NUC7AOPujzV1TwtNzDEhA1KRG0w/75B9V70IMSQ3yADbKEMK/Kq1+H+vovI/WQZI8SoDv9JOIl5/nzjX8hh1AdZ7Cl3YYMaH+mBPRmOF6UYX7tgtcaDWcKpRQyQPbriF2ETT5ceWyyX6Qi6TEnFo6qF5nMSZ2wgO/J4CDuJYFbeG1AQnuFC3Lve5TMD+wQZTyfJPhqmyYBUrSwY4U70g6o8gL21uwjZsXO/TAAuIim6cN4/fabwR4o8iFsAt7YznqAVXpcn2UUSiUw0bwl50Fx1wHQ/7J/hqkSNc1B6ukNGiw6L5/HhaQuDtvySxDMZP+IU13gX82rBzd3Q94slYxdK31hEsmv20iQlxGhBKUYwvnSXMQ5
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

1.       Tell me which groups you get in the UI.


2.       Tell me which groups you get in the WS.


3.       Tell me the relationships of those groups (which are members of which).


4.       Does the NewUI give the correct result? (this groups memberships in other groups)


5.       Run this:


select gmlv.* from grouper_memberships_lw_v gmlv,

grouper_groups gg_member


and gmlv.subject_source = 'g:gsa'


and GMLV.LIST_NAME = 'members'


6.       Take everything out of WS call and see what you get.  Send me the full output of this call


[mchyzer@flash pennGroupsClient-2.3.0]$ java -jar grouperClient.jar --operation=getGroupsWs --subjectIdentifiers=MEMBER:GROUP:NAME --debug=true


POST /grouperWs/servicesRest/v2_3_000/subjects HTTP/1.1




      <subjectIdentifier> MEMBER:GROUP:NAME</subjectIdentifier>






7.       Run this in GSH in the UI, send me the results


gsh 0% grouperSession = GrouperSession.startRootSession();

edu.internet2.middleware.grouper.GrouperSession: c3df973ef3eb468fa17aef679b2d82f1,'GrouperSystem','application'

gsh 1% group = GroupFinder.findByName(grouperSession, "MEMBER:GROUP:NAME");

group: name='test:testGroup' displayName='test:testGroup' uuid='dbfa18c3-a025-47b6-a9a0-be5ac02e8270'

gsh 2% subject = group.toSubject();

subject: id='dbfa18c3-a025-47b6-a9a0-be5ac02e8270' type='group' source='g:gsa' name='test:testGroup'

gsh 3% for (Object[] result : new MembershipFinder().addSubject(subject).findMembershipsMembers()) {System.out.println(result[1]);}




gsh 4%


8.       Run that in GSH in the WS, send me the results





-----Original Message-----
From: Steven Carmody [mailto:]
Sent: Thursday, August 10, 2017 2:26 PM
To: Hyzer, Chris <>; Grouper-Users <>
Subject: Re: [grouper-users] web services, get groups, seems to be returning a subset ?


took some time to make sure this info is accurate --


with the GUI I'm authenticating as myself; I'm in the wheel group; I

select "Act as ADMIN".


The application is authenticating to the web services endpoint as



On 8/9/17 11:12 AM, Hyzer, Chris wrote:

> Is the authenticated user the same?  i.e. maybe in the UI you are a wheel member and in the WS you are not?  Are you using actas in WS?  The results should be the same :)


> -----Original Message-----

> From: [] On Behalf Of Steven Carmody

> Sent: Wednesday, August 09, 2017 11:07 AM

> To: Grouper-Users <>

> Subject: [grouper-users] web services, get groups, seems to be returning a subset ?


> Hi,


> If I use the ADMIN GUI, and Explore to a group, and click View Entity

> Details, and ask to "Show all groups where this entity is a member

> (DIRECT or INDIRECT)", I can see 8 groups in the list that are under the



> However, if I use the WS getGroups method, I'm only returned five

> groups. I'm somewhat surprised, too, that the return set includes groups

> where my "member group" is both a direct and indirect member. There's no

> obvious differentiator between the ones that were included and the ones

> that weren't.


> When I invoke getGroups, I'm passing the "member group"s UUID value. I'm

> also passing a stemName ("BROWN:SERVICES"), and a stemScope

> ('ALL_IN_SUBTREE'), and a memberFilter ('All').


> Any thoughts or suggestions ?


> thanks !



Archive powered by MHonArc 2.6.19.

Top of Page