Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Changing Grouper ID

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Changing Grouper ID

Chronological Thread 
  • From: Tom Barton <>
  • To: "GW Brown, Information Systems and Computing" <>
  • Cc: Thomas M Goerger <>,
  • Subject: Re: [grouper-users] Changing Grouper ID
  • Date: Thu, 17 Apr 2008 14:15:00 -0500

Or you could use Grouper Shell to make the change. Using Gary's code as a model, the corresponding sequence of gsh commands would be

m=MemberFinder.findByUuid(s, "<uuid>")


GW Brown, Information Systems and Computing wrote:
No, you would need to write some code to do it. I'm sure we can come up with a command line script but we're busy getting 1.3.0 ready just now.

You could alter the database directly -

update grouper_members set subject_id=:newId where subject_id=:oldId

The code would look something like:

GrouperSession s = GrouperSession.start(SubjectFinder.findRootSubject();
Member m = MemberFinder.findByUuid(s, "<uuid>") ; //look up uuid in the db


--On 17 April 2008 11:31 -0500 Thomas M Goerger

Do I just add that by adding the attribute to the file,
and setting it to true? And then rebuild the API?

On Thu, 17 Apr 2008, GW Brown, Information Systems and Computing wrote:

Hi Tom,

Grouper does membership mapping against a row in grouper_members. You can
change the subject id there and all the group memberships / privileges
still work because they map to a group using the member uuid.

There is a Member.setSubjectId method which allows GrouperSystem to do
this change via the API.


--On 17 April 2008 09:56 -0500 Thomas M Goerger

> Hi,
> I'm having an issue with changing the underlying name that Grouper is
> using to identify a user. We have an attribute called OfficialName
> that we want to use as the unique identifier in Grouper. Changing
> this value, as might happen if someone has a legal name change, seems
> to be problematic for Grouper. It recognizes the change if you do
> another search, but if you try to list members in a group where one of
> the names has been changed, Grouper spits back a Runtime Exception.
> Anyone else dealt with this at all? How do you deal with a changing
> id in your implementation?
> Thanks,
> Tom Goerger
> University of Minnesota - Internet Services

GW Brown, Information Systems and Computing

GW Brown, Information Systems and Computing

fn:Tom Barton
org:University of Chicago;Networking Services & Information Technology
adr;dom:1155 E. 60th St.;;Rm 309, 1155 Bldg;Chicago;IL;60637
title:Sr. Director - Integration
tel;work:+1 773 834 1700

Archive powered by MHonArc 2.6.16.

Top of Page