Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] WsSampleAssignAttributesRest_json.txt and values

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] WsSampleAssignAttributesRest_json.txt and values

Chronological Thread 
  • From: Scott Koranda <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] WsSampleAssignAttributesRest_json.txt and values
  • Date: Fri, 15 Oct 2010 14:13:44 -0500


> I added a sample for assigning an attribute value:
> Note the attribute def needs to have a value type (e.g. string, integer,
> etc), and whether or not multi-valued:
> attributeDef.setValueType(AttributeDefValueType.integer);
> attributeDef.setMultiValued(true);
> attributeAssignValueOperation is required if passing values to assign. It
> is the operation to perform for attribute value on attribute assignments:
> assign_value, add_value, remove_value, replace_values. Like the attribute
> assign operation, assign_value will assign if not there, or ignore if
> already there. add_value will add even if assigned. And replace_values
> will remove orphans not in the assign list.
> Let me know if you need more...


I am still, however, having problems.

I started a new GSH session and used it to prove to myself
that the attribute is defined and has the name I gave it:

gsh 1% grouperSession = GrouperSession.startRootSession();
gsh 2% a =

I think that means that the attribute is defined and ready to
use, correct?

So I then sent in this JSON via POST to

grouper-ws/servicesRest/json/v1_6_000/attributeAssignments :

"valueSystem":"University of Wisconsin-Milwaukee",

The idea is to give the stem Communities:LVC:LSC:MOU:UWM the
attribute Communities:LVC:LSC:MOU:mouFullName with value
'University of Wisconsin-Milwaukee'.

I received this (shortened) exception back:

Cant find group by uuid: null

Any idea on what I am doing wrong?

Let me know if you want to see the entire stack trace or the
full JSON that came back.



P.S. I checked that the stem really does exist:

gsh 6% s = StemFinder.findByName(grouperSession,
"Communities:LVC:LSC:MOU:UWM", true);
stem: name='Communities:LVC:LSC:MOU:UWM'

Archive powered by MHonArc 2.6.16.

Top of Page