Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Errors on WS get attribute assignments

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Errors on WS get attribute assignments


Chronological Thread 
  • From: Keith Hazelton <>
  • To:
  • Subject: [grouper-users] Errors on WS get attribute assignments
  • Date: Thu, 12 Jul 2012 07:39:18 -0500

I'm now trying to retrieve attribute/value pairs assigned to a Grouper local entity via REST.  I'm basing it on the sample code at:

linked from 

Using Firefox Poster to make the call

Passing in text/xml:
<WsRestGetAttributeAssignmentsRequest>
  <attributeAssignType>group</attributeAssignType>
  <wsAttributeDefNameLookups>
    <WsAttributeDefNameLookup>
      <uuid></uuid>
      <name>Bamboo:Geo-Spatial Apps:App Id</name>
    </WsAttributeDefNameLookup>
  </wsAttributeDefNameLookups>
  <includeAssignmentsOnAssignments>T</includeAssignmentsOnAssignments>
</WsRestGetAttributeAssignmentsRequest>

...and getting an exception:
-----
<WsGetAttributeAssignmentsResults><resultMetadata><resultCode>EXCEPTION</resultCode><resultMessage>clientVersion: 2.1.0, attributeAssignType: group, wsAttributeDefLookups: null, wsAttributeAssignLookups: null, wsAttributeDefNameLookups: Array size: 1: [0]: WsAttributeDefNameLookup[uuid=,name=Bamboo:Geo-Spatial Apps:App Id]
, wsOwnerStemLookups: null, wsOwnerGroupLookups: null, wsOwnerMembershipLookups: null, wsOwnerMembershipAnyLookups: null, wsOwnerAttributeDefLookups: null, actions: null, includeSubjectDetail: false, actAsSubject: null, subjectAttributeNames: null
, paramNames: 
, params: null
, wsOwnerSubjectLookups: null, enabled: null, java.lang.RuntimeException: Illegal query, you need to pass in attributeAssignIds and/or attributeDefId(s) and/or groupId(s) and/or groupNames and/or attributeDefNameIds
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeAssignDAO.findGroupAttributeAssignments(Hib3AttributeAssignDAO.java:751)
...
...
-----

If my local entity owner group is Voronoi Generator
and the attribute def that contains the various attribute names is bamboo:GeoSpatialApps:attributeDefs

what additional parameter do I need to put in the request?  Probably the groupId for the owner group?  What would that look like?

           Advice welcome,    --Keith

Attachment: PGP.sig
Description: This is a digitally signed message part




Archive powered by MHonArc 2.6.16.

Top of Page