Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Grouper 2.4 WS Query Child Groups / Users

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Grouper 2.4 WS Query Child Groups / Users


Chronological Thread 
  • From: Reid Watson <>
  • To: Grouper-Users <>
  • Subject: [grouper-users] Grouper 2.4 WS Query Child Groups / Users
  • Date: Wed, 21 Nov 2018 01:03:51 +0000
  • Accept-language: en-GB, en-NZ, en-US
  • Ironport-phdr: 9a23:Ct91dxc6TPqPyGVjY2tV2JwdlGMj4u6mDksu8pMizoh2WeGdxcSzYh7h7PlgxGXEQZ/co6odzbaO4+a4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYr5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM38H/ZhNFsjKxVoxyvoB1/zJLbbo6aL/d+YrjSfdYGSWpBQspcVSpMCZ68YYsVCOoBOP5VoZXjqFsPsBS1GAmjC/nzyj9TgX/227Ax3uM7EQ7Y3QwvAsgCsXrOo9XpL6cSVua1wbLSwjXec/xW2jP955LOch88u/2DR65/fdDXyUguDg7IiEibp4LiPzOQzOsNsm6b4vJ6WuKyl2EnqAVxrSKpxsgxkIXGnJ4ax1bZ/it62IY4PcC0RUBnbdK+DpdcqiCXO5FrTs88Q2xkojg2x7IHtJKjYSQHxogrywTBZ/CacoWE+A/vWeaSLDtii39pYLy/iAix/ES8z+DxU8e03EpWoSdEl9TDrH4A2AHN5sWCSvZx41qt1iuK2g3Q7uxJLkY5nrfBJZE72L4/jJ8TvFzDHiDonEX2i7ebdkAr++Wn8ujnY7PmpoOGO4BulwHxLqcumsilDuQ+LwcCRXKU9vim2L3l/Ez1WLRKjvsonanFqJ3WOMoWqrKjDwNLz4ou6gyzAyq43NkYh3ULMl1IdROfg4jsIV7OIfT4Dfmlg1SrlTdm3+rGMaPgAprQNHTCnq3ufapm605bzgo+1spQ549IBbECJPL8QEnxu8HCAhAjLwO42eDnCdRl2oMERW2PGrOZML/VsVKQ6eIvOe6MZJINuDnjMfgp/uPujWQnll8HZqmkxp8XaHGjHvR6OEWVf2DggtYHEWcWoAU+Vurqh0OeUTJNfXq9Qb8z5ixoQL6hWKjZQZ21jabE4Ty2BIYeMm9cDU2UHG2tap6JQewkaSSOL9VnnyBeE7WtVtly+wupsVrAxrtrZtXd5jYfs9q3ztV066vMnA0p8jpcBtmW0GWESW0yl2hOQS1gj/M3mlB01lrWifswuPdfD9EGv/4=

Hi Everyone,

We have been working with Grouper WS for the last two months and come across
a couple of issues that we wanted your advice on.

Currently our requirements is to get child groups or users from a group, but
grouper services seem not to provide the functionality to filter.

1. Lite services don’t support pagination. (Maybe by desgin)
2. Member json service support pagination, but not sure how to filter with
subgroups or users

Example Request

{
"WsRestGetMembersRequest":{
"wsGroupLookups":[
{
"groupName":"psrwi.auckland.ac.nz:Employee"
}
],
"includeGroupDetail": "F",
"includeSubjectDetail": "T",
"memberFilter": "Immediate",
"pageSize":"10",
"pageNumber": "1"
}
}

3. Membership service doesn’t support pagination, it seems to be ignored

{
"WsRestGetMembershipsRequest":{
"wsGroupLookups":[
{
"groupName":"psrwi.auckland.ac.nz:Employee"
}
],
"includeGroupDetail": "F",
"includeSubjectDetail": "T",
"memberFilter": "Immediate",
"pageSize":"10",
"pageNumber": "1"
}
}

Were thinking about customising Grouper WS / Create SP or View within the DB
to support our specific needs “get child groups or users from a group", there
are concerns when we upgrade but for example

-- get all child groups
select gg1.name owner_group, gg2.name child_group
from grouper_groups gg1, grouper_groups gg2, grouper_memberships gm,
grouper_members ggs
where gm.owner_group_id = gg1.id
and gg1.name = 'ec.auckland.ac.nz:ecusers'
and ggs.subject_id = gg2.id
and gm.member_id = ggs.id
--and gm.mship_type = ‘immediate’;

-- get all group users with pagination
select gg.name groupName, ggs.subject_id personid, ggs.subject_identifier0
upi, ggs.description name
from grouper_groups gg, grouper_members ggs, grouper_memberships gm
where gg.name = 'psrwi.auckland.ac.nz:Employee'
and gm.owner_group_id = gg.id
and gm.member_id = ggs.id
and ggs.subject_type = 'person'
order by ggs.subject_id -- sorting by personid
OFFSET 10 ROWS FETCH NEXT 10 ROWS ONLY; -- from 10~20


It seems to make our life easier and limit the number of calls to WS we need
to write our own queries and customise GrouperWS, If anyone has some advice
or come across similar issues can you please make some recommendations

cheers

Reid

  • [grouper-users] Grouper 2.4 WS Query Child Groups / Users, Reid Watson, 11/21/2018

Archive powered by MHonArc 2.6.19.

Top of Page