grouper-users - [grouper-users] Re: web services find group by attribute value
Subject: Grouper Users - Open Discussion List
List archive
- From: Scott Koranda <>
- To: grouper-users <>
- Subject: [grouper-users] Re: web services find group by attribute value
- Date: Mon, 6 Jun 2016 15:00:12 -0500
> Hi,
>
> I am using Grouper 2.2.x.
>
> I am following the documentation at
>
> https://spaces.internet2.edu/display/Grouper/Get+Attribute+Assignments
>
> and attempting to find a group by an attribute assignment
> value.
>
> I am sending in the following JSON:
>
> {
> "WsRestGetAttributeAssignmentsRequest" : {
> "actAsSubjectLookup" : {
> "subjectId" : "GrouperSystem"
> },
> "attributeAssignType" : "group",
> "wsAttributeDefNameLookups" : [
> {
> "name" : "MyStem:MyID",
> "attributeDefValueType" : "integer",
> "theValue" : "12345678"
> }
> ],
> "includeGroupDetail" : "T"
> }
> }
>
> The query does find a group where the attribute assignment has the value
> 12345678, but it also finds groups where the attribute assignment has
> other values.
>
> How can I find only the group where the attribute assignment has a
> particular
> value?
>
> Thanks,
>
> Scott K
Ah. Nevermind.
Apologies for answering my own question. The correct JSON
input is
{
"WsRestGetAttributeAssignmentsRequest" : {
"actAsSubjectLookup" : {
"subjectId" : "GrouperSystem"
},
"attributeAssignType" : "group",
"attributeDefValueType" : "integer",
"theValue" : "12345678",
"wsAttributeDefNameLookups" : [
{
"name" : "MyStem:MyID"
}
],
"includeGroupDetail" : "T"
}
}
Thanks,
Scott K
- [grouper-users] web services find group by attribute value, Scott Koranda, 06/06/2016
- [grouper-users] Re: web services find group by attribute value, Scott Koranda, 06/06/2016
Archive powered by MHonArc 2.6.16.