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: Steven Carmody <>
  • To: "Hyzer, Chris" <>, Grouper-Users <>
  • Subject: Re: [grouper-users] web services, get groups, seems to be returning a subset ?
  • Date: Mon, 21 Aug 2017 13:28:47 -0400
  • Ironport-phdr: 9a23:7TwT+BRutRUwzhlv8dkt1NFF1Npsv+yvbD5Q0YIujvd0So/mwa6ybBWN2/xhgRfzUJnB7Loc0qyN4vCmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSijewZbB/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHKhMJugqJVoxyvqBJwzIHWfI6bO+Fzfr/fcN4AWWZNQshcWi5HD4ihb4UPFe0BPeNAoofgu1sBswW+CheqBOjy1DJHnGX23ag90+s8EQDNwQstH8kSsHvKstX6KqESXvipw6bS1zXDavRW1ir96YXTaR8hu/aMXLx2ccbL10YgCh7Fg0yWpIf4PD2VzvwAv3aa4uZ8V++ijmAnpgJqrTSzw8ohhZXFip4IxV3B6Sp13II4KNi9RUJlb9OpEYNcuzyEO4Z1WM8uXm5ltSUgxrEYt5O3YjIGxZUhyhXCcfKIaZKI7QjmVOuJITd3mnZleLWniha360egy+n8WtCt0FZJsiZJi9bNum4D2hHS8MSHRfx9/kCu2TaLyQ/f8P1LIUcxlabDKp4hxKA/loYLvEjdHyL6hEf7gaqYdkgn4eek9+Hqb7r6qpOAKoB5jx3xPrgql8G6BOk0LAYDUmmD9eS5zrLj/En5QLtQjv0xl6nUqIvaJdgFqa6nHQBV1J4s5AqlADe81dQYmmQILVJedR2clYjpPF/PIPbiAfihnlusjS9nx+raMb35HpXNMn/Dna/ufbZn7E5c1RIzws5F555NF7EBO+z8WlXqtNHDCh85Mhe0w/r8CNljzI8eWGSPArOHP6PIt1+H+P4vL/eWaIALpTn9Nqtt2/m7x18oi1IHOeGC3YEWczrwSvFtI1SLbGDEg8wKV3oSsww4CuHmlQvGGRFJYGuqUrh52yo2EpnuWYjZQZ21jabEwTy2BIZ+Z2ZaB0qKHGuyMYiIRqFfRjiVJ5pajjEaWL7pYIY70BaipUeu0KZqMOfSzSYRr5fk2Mld7ffUihd0+DBpWZfOm1qRRn15yztbDwQ927py9BRw

Chris -- this turned out to be my fault; I made a mistake. Sorry for causing alarm.

On 8/10/17 3:10 PM, Hyzer, Chris wrote:
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

where GMLV.SUBJECT_ID = GG_MEMBER.ID

and gmlv.subject_source = 'g:gsa'

and GG_MEMBER.NAME = 'MEMBER:GROUP:NAME'

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

<WsRestGetGroupsRequest>

<subjectLookups>

<WsSubjectLookup>

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

</WsSubjectLookup>

</subjectLookups>

<enabled>T</enabled>

</WsRestGetGroupsRequest>

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]);}

Group[name=test:testGroup4,uuid=e705557b648d4c0ca3efc1705f98225d]

Group[name=test:testGroup3,uuid=6f6c6b952dcd4b328d436219e9055a44]

Group[name=test:testGroup5,uuid=8e3682d08e5f43c6ac2d265bcd8be093]

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

GrouperSystem.

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: <mailto:> [mailto:] On Behalf Of Steven Carmody

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

> To: Grouper-Users < <mailto:>>

> 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

> BROWN:SERVICES stem.

>

> 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