grouper-users - Re: [grouper-users] calling getImmediateMembers method
Subject: Grouper Users - Open Discussion List
List archive
- From: Robert Bradley <>
- To:
- Subject: Re: [grouper-users] calling getImmediateMembers method
- Date: Wed, 22 Nov 2017 18:02:57 +0000
- Ironport-phdr: 9a23:i5z5iR3rK7rdarJTsmDT+DRfVm0co7zxezQtwd8ZseISLfad9pjvdHbS+e9qxAeQG96Ku7Qc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q89pDXYAhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmlTkJNzA5/m/UhMJ/gq1UrxC9qBJw2IPUfIKYOeBicq/Bc94XR2xMVdtRWSxbBYO8apMCAfYGPelDsYb9vUcOpgajCAm2Huzg1ztIiWH23KYn1OkhCwbG0xc+ENIUrHTYts76NL0IXu+oyKnH0zXCYuhX2Tfh8oTIdR8greuWUr1sa8bR1EovGhrDg16Np4LlODaV2f4Ms2id9+dgT/igimAoqwFwvjij3Nsjio7Mho4NxVDE9Dl5wIYoJdKjUkJ0fdmkEJ5WuiqHNIV2WtsvT3x2tCs+0LELuJy2cDIXxJg92hLSauKLf5CV7h79UOudOzZ1iXB/dL6imxq//1KsxvDhWsS71ltBszBLncPWtn8X0hze8siHReV5/kemwTuPzR7c6uVeLkE0iKbXNoQtwrsqmZoStUTPBCj2mUrsgKCMakoo4PWo6+f/brXnoJ+TKZN0hxnjPqgwnsGzG+U1PwoUU2SG4+iwybzu8VPhTLVPlPI2k63ZsJ7AJcQco660GxVV0oE45BmhFTemzM4UkmIdLF1fZR2Hi5bmOlHVLfD5EfezmVOskThxy//cIrLtGIjNLnvbnLf7Ybl981JcyBY0zd1H6JJUELYBIO/rWkDvrtzUFwI5MxeqzOb9E9VwzYceWWOUAq+FK6Per0WE5uMpI+mQeoAVojD9JOY55/Lwl3M2h0ISfbT6lacQPX+iGel+Ll/cfGHhmMwpEGEWsxA4QfCwzlCOTG19fXG3Cpg77DwhFMqMF47PQo28yOib2y22BIEQbHpPBlSBAF/pa8ODS7EFY2SPIZkywXQ/SbG9Rtp5hlmVvwjgxu8/Iw==
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 22/11/17 17:31, Ben Beecher wrote:
> I looked at the documentation for the Group class in the JavaDoc
> https://cdn.rawgit.com/Internet2/grouper/GROUPER_2_3_BRANCH/grouper/do
c/api/edu/internet2/middleware/grouper/Group.html?view=co
>
> I see there is a method called getImmediateMembers. I would like
> to call that method using a Python script. I found sample code for
> the getMembers method in GitHub but I don't see any examples for
> getImmediateMembers:
> https://github.com/Internet2/grouper/tree/master/grouper-ws/grouper-ws
/doc/samples/getMembers
>
> I am using this Python code to call the getMembers method. How
> should I change it to access getImmediateMembers instead? result =
> self.grouperWSRequest(self.grouper_wsuri+"/groups/"+groupName+"/member
s",
>
>
'GET')
>
I found that the following worked for me (using Kerberos/SPNEGO
authentication):
$ curl --negotiate -u:
'https://<grouper-ws-host>/servicesRest/v2_2_000/groups' --data
"@get_members.xml" --header 'Content-Type: text/xml; charset=UTF-8'
with get_members.xml reading:
<?xml version="1.0" encoding="UTF-8"?>
<WsRestGetMembersRequest>
<includeSubjectDetail>T</includeSubjectDetail>
<memberFilter>Immediate</memberFilter>
<wsGroupLookups>
<WsGroupLookup>
<groupName>teststem:mygroup</groupName>
</WsGroupLookup>
</wsGroupLookups>
</WsRestGetMembersRequest>
This gets sent as a POST request to the non-lite endpoint.
Hope that helps!
- --
Dr Robert Bradley
Identity and Access Management Team, IT Services, University of Oxford
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEgF3NFfO9FqlA+ME+lGGnynav474FAloVu8YACgkQlGGnynav
474SFA//WbfbqcFa7WJNBltsMSzNARhJ/tFc2Om4HPCy5xIVH40E1S00qT0aQVAx
0sUjKjO+I0GaPQbNndC4IS04GP/0SHgJewKc8CG94bVfnZV3Wu3FSqEtD1ETcMtf
v161BpBe2XbLNCBViREz4+2v4fLCPLBy7C5w2E8kUxS7TPHntWrX7WjJ3xWPYG6/
sWCUqaXX1NoSyOaqBOFc2Ax0zWhTP0otJcCZfIgtcS70x6MMHFGwXEhM9tA4LQAa
3mxOvMcTfj/jILgono/OMg/AGG5pxwRvhxEhrVLQ02ylBTMs5b3nWfz3Ua3hm4Wf
vVDs6U/q29cTwf/eeh5/vdOjn9hEJGjvYMrieIENvpkPBtSt6UQNFpk4bUWbluuf
Nz4houkORV2aGp6/dxva4sSgrnuEqoCy0IRV9nhJbQ2xnA2ArpgeGZnoKUxGoinC
5oc8qWm6ZuD+oP5/WH3bkzuEeJ8Tuufeep1vw+hnAX5VX7DfQbOJg55cDQ1ZX9A5
WnDROqxC6AArh7Gos3LbHIE/d97AJmXDaJRlVfiSxIlBivqqvKEaeoqCeuIoyBKN
YssdffCEzNzmZlPgfVQYEq2JgdpTDE1iNAegN6iA5GY3WHlPD6Ji64HzOUJgNSE6
/Lnkgz4x/LPDdv4mjxIUs3ETHlDKPfD9RoDumhAqW0EDjxAU9pc=
=LIX2
-----END PGP SIGNATURE-----
- [grouper-users] calling getImmediateMembers method, Ben Beecher, 11/22/2017
- Re: [grouper-users] calling getImmediateMembers method, Robert Bradley, 11/22/2017
- Re: [grouper-users] calling getImmediateMembers method, Ben Beecher, 11/28/2017
- Re: [grouper-users] calling getImmediateMembers method, Robert Bradley, 11/22/2017
Archive powered by MHonArc 2.6.19.