grouper-users - [grouper-users] RE: Does getMemberships WS api return subject identifiers
Subject: Grouper Users - Open Discussion List
List archive
- From: "D'Costa, Herman" <>
- To: Chris Hyzer <>, "" <>
- Subject: [grouper-users] RE: Does getMemberships WS api return subject identifiers
- Date: Wed, 11 Feb 2015 01:18:42 +0000
- Accept-language: en-US
- Authentication-results: isc.upenn.edu; dkim=none (message not signed) header.d=none;
Thanks Chris. This worked for us, using subjectAttributeNames. Thanks, regards Herman From: Chris Hyzer [mailto:]
Yes, it is possible: I have this set in the grouper-ws.properties: ws.subject.result.detail.attribute.names = name, description, PENNNAME, EMAIL but when I ask for detail attributes it sends name and description but not the others. Anyways, you might need to set it on the WS side... [mchyzer@flash pennGroupsClient-2.0.0]$ java -jar grouperClient.jar --operation=getMembershipsWs --groupNames=test:testGroup --debug=true --subjectAttributeNames=PENNNAME DEBUG: Reading resource: grouper.client.properties, from: /home/mchyzer/grouper/pennGroupsClient-2.0.0/grouper.client.properties DEBUG: WebService: connecting as user: 'user' DEBUG: WebService: connecting to URL: 'https://someurl.upenn.edu/grouperWs/servicesRest/v2_0_000/memberships' ################ REQUEST START (indented) ############### POST /grouperWs/servicesRest/v2_0_000/memberships HTTP/1.1 Connection: close Authorization: Basic xxxxxxxxxxxxxxxx User-Agent: Jakarta Commons-HttpClient/3.1 Host: fastprod-medium-a-05.apps.upenn.edu:-1 Content-Length: 232 Content-Type: text/xml; charset=UTF-8 <WsRestGetMembershipsRequest> <wsGroupLookups> <WsGroupLookup> <groupName>test:testGroup</groupName> </WsGroupLookup> </wsGroupLookups> <subjectAttributeNames> <string>PENNNAME</string> </subjectAttributeNames> </WsRestGetMembershipsRequest> ################ REQUEST END ############### ################ RESPONSE START (indented) ############### HTTP/1.1 200 OK Date: Tue, 03 Feb 2015 04:12:43 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 <WsGetMembershipsResults> <wsMemberships> <WsMembership> <membershipId>39f3b954-9ab4-43a5-81f8-af5081018ffa:44cb710cfe1c44bfb6241733c3dd4ef2</membershipId> <immediateMembershipId>39f3b954-9ab4-43a5-81f8-af5081018ffa</immediateMembershipId> <listName>members</listName> <listType>list</listType> <membershipType>immediate</membershipType> <enabled>T</enabled> <memberId>c5c8ef55-76be-4b0d-9910-9efbf465cff3</memberId> <groupId>dbfa18c3-a025-47b6-a9a0-be5ac02e8270</groupId> <subjectId>10021368</subjectId> <subjectSourceId>pennperson</subjectSourceId> <groupName>test:testGroup</groupName> <createTime>2009/03/24 15:44:13.501</createTime> </WsMembership> </wsMemberships> <subjectAttributeNames> <string>PENNNAME</string> </subjectAttributeNames> <wsGroups> <WsGroup> <extension>testGroup</extension> <displayExtension>testGroup</displayExtension> <description>testGroup</description> <displayName>test:testGroup</displayName> <name>test:testGroup</name> <uuid>dbfa18c3-a025-47b6-a9a0-be5ac02e8270</uuid> </WsGroup> </wsGroups> <wsSubjects> <WsSubject> <resultCode>SUCCESS</resultCode> <success>T</success> <id>10021368</id> <name>Chris Hyzer</name> <sourceId>pennperson</sourceId> <attributeValues> <string>mchyzer</string> </attributeValues> </WsSubject> </wsSubjects> <resultMetadata> <resultCode>SUCCESS</resultCode> <resultMessage>Found 1 results involving 1 groups and 1 subjects</resultMessage> <success>T</success> </resultMetadata> <responseMetadata> <resultWarnings></resultWarnings> <millis>151</millis> <serverVersion>2.1.1</serverVersion> </responseMetadata> </WsGetMembershipsResults> ################ RESPONSE END ############### DEBUG: Output template: Index: ${index}: group: ${wsGroup.name}, subject: ${wsSubject.id}, list: ${wsMembership.listName}, type: ${wsMembership.membershipType},
enabled: ${wsMembership.enabled} , available variables: wsGetMembershipsResults, grouperClientUtils, index, wsMembership Index: 0: group: test:testGroup, subject: 10021368, list: members, type: immediate, enabled: T DEBUG: Elapsed time: 1149ms [mchyzer@flash pennGroupsClient-2.0.0]$ From:
[]
On Behalf Of D'Costa, Herman Given a group name or uuid, is it possible to retrieve subject identifiers in addition to the subject id? Thanks, regards Herman D’Costa UCLA ITServices |
- [grouper-users] Does getMemberships WS api return subject identifiers, D'Costa, Herman, 02/03/2015
- [grouper-users] RE: Does getMemberships WS api return subject identifiers, Chris Hyzer, 02/03/2015
- [grouper-users] RE: Does getMemberships WS api return subject identifiers, D'Costa, Herman, 02/11/2015
- [grouper-users] RE: Does getMemberships WS api return subject identifiers, Chris Hyzer, 02/03/2015
Archive powered by MHonArc 2.6.16.