assigning eduperson based on memberof

Ortner Nikolaus N.Ortner at fh-kaernten.at
Fri Jul 12 05:16:08 EDT 2013


> > Users that are members of the group "STUDENT" get added the 'student'
> > value added to the eduPersonAffiliation attribute just fine, but members
> of the group "STU" are members of our student union and need to be given
> the value 'member', except that they are being given 'student'.

I don't get it - why is it a problem having a "STUDENT" with both values, 'student' and 'member'?

Maybe something like this?
if( ... ) // STUDENT?
	eduPersonAffiliation.getValues().add("student");
if( ... ) // STU? && eduPersonAffiliation.getValues().size() == 0
               eduPersonAffiliation.getValues().add("member");

Kind regards.


More information about the users mailing list