Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Excluding include/exclude groups in Get Groups WS API

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Excluding include/exclude groups in Get Groups WS API


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: "Katika,Shanthi Swaroop" <>, "" <>
  • Subject: [grouper-users] RE: Excluding include/exclude groups in Get Groups WS API
  • Date: Tue, 15 Nov 2016 21:53:19 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:WwlD5hILh3kJGgeeiNmcpTZWNBhigK39O0sv0rFitYgXKv3yrarrMEGX3/hxlliBBdydsKMfzbOM+Pm8CCQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5b75+Ngi6oRveusULjoZvLrs6xwfUrHdPZ+lY335jK0iJnxb76Mew/Zpj/DpVtvk86cNOUrj0crohQ7BAAzsoL2465MvwtRneVgSP/WcTUn8XkhVTHQfI6gzxU4rrvSv7sup93zSaPdHzQLspVzmu87tnRRn1gyocKTU37H/YhdBxjKJDoRKuuRp/w5LPYIqIMPZyZ77Rcc8GSWZEWMtaSi5PDZ6mb4YXD+QPI/tWr5XzqVUNoxuxBwisC//gxTJTnHD6wbE23v49HQ3a3gEtGc8FvnTOrNXyMacfSe65wqvIzDTCcfxWwy/x45XWfxAhu/GMXKlwfcTMwkQoEgPKklWQqIzkPjyLzOQAqGmb7/F8Wu61lm4nsx9+oj6pxss2lIbGm58Vx0nC+C5kzog1Iti4R1R6Yd6iCJZQqjmaOJVwQsMkWW1npjs1yqAAtJWmfyYK0IwqywDFZPCbboSF5w/vWPuMLTp9inJod66ziwq3/EWi1OLxWca53VNPoyZbjtXAqmgB2wHd58SbUPdw+lqt1SyR2wzO7uxIO104mKjaJpMn37U+jIAcsV7ZES/zgEj2jLGZdkEj+uWw8+rqfrLoqoOCO4Ntlw/wKrkiltW4AesjLAcCRW+b+fmg1LL4+k35XbNKgeAsnqnBqpDaItgbqbClDA9J04Yj7BC/Ay2h0NQFgXkHKFVFeBWEj4TzJ17OJ/X4Ae++g1Sqjjhr2+jLMqP7DZnRM3TOlartcatg50NZxgo+wsxT645RB7wDPv3+VUD8udndAxMnLwC43/7rCNBn2YMfXWKPDLWZMKTXsVKQ4+IgP+mMZY8UuTnjMfgo/P/ujWQlllMHYKmpxYUYaHa+Hvh8PUqWfGfsjs8bEWgWpgo+UPDqiFqaXD5cfXayWL885iklB4K8FIvDW5utj6Kb3CegBZBWYmFGCkuQEXfzaYmIQfYMaCSOIsB/iDwEU6auS5M/2R20qgD11qdnfaLo/XhSlpv/1dt8o9bTnBcu9T08NNuUyWaKVys8yngLTiM336lXvEJ5jFqPzP48y7ZXD9tO//5TFxohOITH5+18F93oXA/dJJGEREvsCoGpGzYsVt8rhsIVblxmM9Skkh3Z2Se2WfkYm6HdV7Iu9aeJlVjgNctnjz7t1LMglBNuFs5ENXy0i7RX9hPYQZPRnkOf0aumaPJPj2b26G6fwD/W7wljWwlqXPCABChHaw==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

No sorry, all groups even composites will be included.

 

Paging works for me in 2.3 (See below).  Any chance you can upgrade or are you doing something different?

 

Thanks

Chris

 

[mchyzer@flash pennGroupsClient-2.3.0]$ java -jar grouperClient.jar --operation=getGroupsWs --subjectIdentifiers=mchyzer --pageSize=5 --pageNumber=1 --sortString=displayName --ascending=true --debug=true

 

################ REQUEST START (indented) ###############

 

POST /grouperWs/servicesRest/v2_2_000/subjects HTTP/1.1

Connection: close

Authorization: Basic xxxxxxxxxxxxxxxx

User-Agent: Jakarta Commons-HttpClient/3.1

Host: grouperws.apps.upenn.edu:-1

Content-Length: 291

Content-Type: text/xml; charset=UTF-8

 

<WsRestGetGroupsRequest>

  <subjectLookups>

    <WsSubjectLookup>

      <subjectIdentifier>mchyzer</subjectIdentifier>

    </WsSubjectLookup>

  </subjectLookups>

  <enabled>T</enabled>

  <pageSize>5</pageSize>

  <pageNumber>1</pageNumber>

  <sortString>displayName</sortString>

  <ascending>T</ascending>

</WsRestGetGroupsRequest>

 

################ REQUEST END ###############

 

 

################ RESPONSE START (indented) ###############

 

HTTP/1.1 201 Created

Date: Tue, 15 Nov 2016 21:50:12 GMT

Set-Cookie: JSESSIONID=xxxxxxxxxxxx; Path=/grouperWs

X-Grouper-resultCode: SUCCESS

X-Grouper-success: T

X-Grouper-resultCode2: NONE

Content-Type: text/xml;charset=UTF-8

Vary: Accept-Encoding

Connection: close

Transfer-Encoding: chunked

Set-Cookie: BIGipServerPFA-grouperws_pool=3827569836.20480.0000; expires=Wed, 16-Nov-2016 03:50:12 GMT; path=/

 

<WsGetGroupsResults>

  <results>

    <WsGetGroupsResult>

      <wsGroups>

        <WsGroup>

          <extension>activeNonAlumniWithPennname</extension>

          <typeOfGroup>group</typeOfGroup>

          <displayExtension>activeNonAlumniWithPennname</displayExtension>

          <description>active people at Penn with pennname (some affiliations filtered out e.g. alumni)</description>

          <displayName>penn:community:activeNonAlumniWithPennname</displayName>

          <name>penn:community:activeNonAlumniWithPennname</name>

          <uuid>a6f648955f0046bf8594aec7b61366ad</uuid>

          <idIndex>152762</idIndex>

        </WsGroup>

        <WsGroup>

          <extension>employeeNonTemp</extension>

          <typeOfGroup>group</typeOfGroup>

          <displayExtension>employeeNonTemp</displayExtension>

          <description>employees other than &apos;temp&apos; affiliation (faculty and staff)</description>

          <displayName>penn:community:employeeNonTemp</displayName>

          <name>penn:community:employeeNonTemp</name>

          <uuid>0970551c-b2f3-4b84-955d-23529fd35bf1</uuid>

          <idIndex>18245</idIndex>

        </WsGroup>

        <WsGroup>

          <extension>staff</extension>

          <typeOfGroup>group</typeOfGroup>

          <displayExtension>staff</displayExtension>

          <description>generic staff group e.g. for shib</description>

          <displayName>penn:community:staff</displayName>

          <name>penn:community:staff</name>

          <uuid>2804569d9c664517a138d079c07610da</uuid>

          <idIndex>44358</idIndex>

        </WsGroup>

        <WsGroup>

          <extension>ldapReadMemberOf</extension>

          <typeOfGroup>group</typeOfGroup>

          <displayExtension>ldapReadMemberOf</displayExtension>

          <description>if you are in this group you can read memberOf</description>

          <displayName>penn:etc:ldapReadMemberOf</displayName>

          <name>penn:etc:ldapReadMemberOf</name>

          <uuid>fb2bfc5f533b421189d50189c9696a54</uuid>

          <idIndex>240621</idIndex>

        </WsGroup>

        <WsGroup>

          <extension>ldapUsers</extension>

          <typeOfGroup>group</typeOfGroup>

          <displayExtension>ldapUsers</displayExtension>

          <description>users allowed to login to ldap</description>

          <displayName>penn:etc:ldapUsers</displayName>

          <name>penn:etc:ldapUsers</name>

          <uuid>77588c9b-bef5-4a49-929e-ef87b10e0ade</uuid>

          <idIndex>112107</idIndex>

        </WsGroup>

      </wsGroups>

      <resultMetadata>

        <resultCode>SUCCESS</resultCode>

        <success>T</success>

      </resultMetadata>

      <wsSubject>

        <identifierLookup>mchyzer</identifierLookup>

        <resultCode>SUCCESS</resultCode>

        <success>T</success>

        <id>10021368</id>

        <name>Chris Hyzer</name>

        <sourceId>pennperson</sourceId>

      </wsSubject>

    </WsGetGroupsResult>

  </results>

  <resultMetadata>

    <resultCode>SUCCESS</resultCode>

    <resultMessage>Success for: clientVersion: 2.2.0, subjectLookups: Array size: 1: [0]: WsSubjectLookup[subjectIdentifier=mchyzer]

 

memberFilter: All, includeGroupDetail: false, actAsSubject: null

, params: null

fieldName1: null

, scope: null, wsStemLookup: null

, stemScope: null, enabled: T, pageSize: 5, pageNumber: 1, sortString: displayName, ascending: true

, pointInTimeFrom: null, pointInTimeTo: null</resultMessage>

    <success>T</success>

  </resultMetadata>

  <responseMetadata>

    <resultWarnings></resultWarnings>

    <millis>106</millis>

    <serverVersion>2.3.0</serverVersion>

  </responseMetadata>

</WsGetGroupsResults>

 

################ RESPONSE END ###############

 

SubjectIndex 0: success: T: code: SUCCESS: subject: 10021368: groupIndex: 0: penn:community:activeNonAlumniWithPennname

SubjectIndex 0: success: T: code: SUCCESS: subject: 10021368: groupIndex: 1: penn:community:employeeNonTemp

SubjectIndex 0: success: T: code: SUCCESS: subject: 10021368: groupIndex: 2: penn:community:staff

SubjectIndex 0: success: T: code: SUCCESS: subject: 10021368: groupIndex: 3: penn:etc:ldapReadMemberOf

SubjectIndex 0: success: T: code: SUCCESS: subject: 10021368: groupIndex: 4: penn:etc:ldapUsers

DEBUG: Elapsed time: 1499ms

[mchyzer@flash pennGroupsClient-2.3.0]$

 

From: [mailto:] On Behalf Of Katika,Shanthi Swaroop
Sent: Tuesday, November 15, 2016 12:39 PM
To:
Subject: [grouper-users] Excluding include/exclude groups in Get Groups WS API

 

Hi,

I’m making a post call using the getGroups API & WsRestGetGroupsLiteRequest object to get list of a groups a subject belongs too.

 

I have been able to filter up to stem level by using the ‘scope’ parameter. But the results include all the includes, excludes, baseAndIncludes groups. Is there a way to further filter and get only the overall group?

 

Also, even when I include pageNumber & pageSize, the pagination doesn’t seem to be working. Do I need to set any other variables?

Grouper version: 2.2.0

 

Best,
Swaroop




Archive powered by MHonArc 2.6.19.

Top of Page