Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] putting attributes on a 'member'

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] putting attributes on a 'member'


Chronological Thread 
  • From: Scott Koranda <>
  • To: "''" <>
  • Subject: Re: [grouper-users] putting attributes on a 'member'
  • Date: Wed, 27 Oct 2010 18:36:57 -0500

> Hi,
>
> I used gsh to put an attribute value onto a 'member' like
> this:
>
> s =
> SubjectFinder.findById("")
>
> m = MemberFinder.findBySubject(grouperSession, s, false)
> m.getAttributeValueDelegate().assignValue("Communities:LVC:authorNameFirstInitial",
> "S")
>
> It worked. Great.
>
> But it also reminded me to ask this naive question: what is
> the distinction between a subject and a member?
>
> Is it only that a member is a subject with a membership in at
> least one group known to Grouper, while a subject can "live"
> outside of Grouper without being a member of any group?
>

Also, what privileges are needed in order for a subject/member
to assign a value to an attribute for that member?

I did this:

authorFirstInitialAttrDef.getPrivilegeDelegate().grantPriv(s,AttributeDefPrivilege.ATTR_OPTIN,
false)

but when I then try to assign a value for that attribute
(using Grouper WS) I get

edu.internet2.middleware.grouper.exception.InsufficientPrivilegeException:
Subject Subject id:
,
sourceId: ligo is
not wheel or GrouperSystem\n\tat
edu.internet2.middleware.grouper.attr.assign.AttributeAssignMemberDelegate.assertCanUpdateAttributeDefName...

In plain english, I want a user to be able to set some
attributes on himself or herself.

Thanks,

Scott



Archive powered by MHonArc 2.6.16.

Top of Page