grouper-users - [grouper-users] WS getAttributeAssignments for imm_mem and multiple owner lookups
Subject: Grouper Users - Open Discussion List
List archive
[grouper-users] WS getAttributeAssignments for imm_mem and multiple owner lookups
Chronological Thread
- From: Scott Koranda <>
- To: grouper-users <>
- Subject: [grouper-users] WS getAttributeAssignments for imm_mem and multiple owner lookups
- Date: Sun, 30 Sep 2012 16:22:11 -0500
Hi,
I am using Grouper 2.1.2.
If I send in this JSON to the attributeAssignments RESTful
endpoint it works and I receive a list of attribute
assignments on the immediate membership:
{
"WsRestGetAttributeAssignmentsRequest":{
"actAsSubjectId":"GrouperSystem",
"attributeAssignType":"imm_mem",
"includeAssignmentsOnAssignments":"F",
"includeGroupDetail":"T",
"wsOwnerMembershipLookups" :[
{
"uuid":"cdcff16d8d8f4148ae8b7a2a8a87c010:0bb468654e91405c9b1461873e44d20c"
}
]
}
}
But if I send in this JSON, which includes multiple membership
uuids, it fails:
{
"WsRestGetAttributeAssignmentsRequest":{
"actAsSubjectId":"GrouperSystem",
"attributeAssignType":"imm_mem",
"includeAssignmentsOnAssignments":"F",
"includeGroupDetail":"T",
"wsOwnerMembershipLookups" :[
{
"uuid":"cdcff16d8d8f4148ae8b7a2a8a87c010:0bb468654e91405c9b1461873e44d20c"
},
{
"uuid":"4ea839c8b5ed4a519cbef121e39ec9e5:70c42e30bfe34638a60fcf522659f4a2"
}
]
}
}
When it fails I receive this:
{
"WsGetAttributeAssignmentsResults": {
"responseMetadata": {
"millis": "106",
"serverVersion": "2.1.2"
},
"resultMetadata": {
"resultCode": "INVALID_QUERY",
"resultMessage": "Membership calls can only have
membership owner lookups. clientVersion: 2.1.0,
attributeAssignType: imm_mem, wsAttributeDefLookups: null,
wsAttributeAssignLookups: null, wsAttributeDefNameLookups:
null, wsOwnerStemLookups: null, wsOwnerGroupLookups: null,
wsOwnerMembershipLookups: Array size: 2: [0]:
WsMembershipLookup[uuid=cdcff16d8d8f4148ae8b7a2a8a87c010:0bb468654e91405c9b1461873e44d20c]\n[1]:
WsMembershipLookup[uuid=4ea839c8b5ed4a519cbef121e39ec9e5:70c42e30bfe34638a60fcf52...,
wsOwnerMembershipAnyLookups: null, wsOwnerAttributeDefLookups:
null, actions: null, includeSubjectDetail: false,
actAsSubject: null, subjectAttributeNames: null\n, paramNames:
\n, params: null\n, wsOwnerSubjectLookups: null, enabled:
null, attributeDefValueType: null, theValue: null,
includeAssignmentsFromAssignments: false, attributeDefType:
null, wsAssignAssignOwnerAttributeAssignLookups: null,
wsAssignAssignOwnerAttributeDefLookups: null,
wsAssignAssignOwnerAttributeDefNameLookups: null,
wsAssignAssignOwnerActions: null",
"success": "F"
}
}
}
The documentation at
https://spaces.internet2.edu/display/Grouper/Get+Attribute+Assignments
says "Accepts multiple groups or subjects or memberhipIds (or
combination) etc to retrieve lists of attribute assignments".
That statement led me to think that I could send in multiple
immediate membership uuids.
What have I done wrong?
Thanks,
Scott
- [grouper-users] WS getAttributeAssignments for imm_mem and multiple owner lookups, Scott Koranda, 09/30/2012
- RE: [grouper-users] WS getAttributeAssignments for imm_mem and multiple owner lookups, Chris Hyzer, 09/30/2012
Archive powered by MHonArc 2.6.16.