Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Using a custom attribute for subject display

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Using a custom attribute for subject display

Chronological Thread 
  • From: Peter DiCamillo <>
  • To: "" <>
  • Subject: [grouper-users] Using a custom attribute for subject display
  • Date: Thu, 02 Aug 2012 16:08:54 -0400

We're upgrading to Grouper 2.1.1, and I'm trying to improve how we
display subjects in the Grouper UI. Ideally, I'd like to display either:
lastname, firstname or
lastname, firstname (internal_id)
The internal id is confidential, but very convenient for privileged
staff who are allowed to access it. Grouper would include the internal id in subject displays when a session's subject is privileged.

I tried to do this by defining a new attribute for subjects, and specifying it for the source's subject.display attribute in media.properies. First I tried to add the attribute to subjects using an override for decorateSubjects. However, I never saw decorateSubjects being called for subject display. After that, I tried overriding filterSubjects, and adding the attribute to the subjects' attribute maps. That worked for search results, but didn't work for group membership results. Finally, while still using filterSubjects, I tried defining a virtual attribute from the added attribute, and that didn't work at all.

Is there a way to do what I want to do, or is it to too ambitious? The new video regarding this topic was very helpful, and gave me the idea this might be possible. Even if it isn't, I'm impressed by what clearly is possible now.


Archive powered by MHonArc 2.6.16.

Top of Page