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: Chris Hyzer <>
  • To: Tom Barton <>, "GW Brown, Information Systems and Computing" <>
  • Cc: Thomas M Goerger <>, "" <>
  • Subject: RE: [grouper-users] Changing Grouper ID
  • Date: Thu, 17 Apr 2008 20:59:38 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

FYI this will be a web service operation in the next release of grouper web
services (not this one): 1.3.1

Chris

> -----Original Message-----
> From: Tom Barton
> [mailto:]
> Sent: Thursday, April 17, 2008 3:15 PM
> To: GW Brown, Information Systems and Computing
> Cc: Thomas M Goerger;
>
> Subject: Re: [grouper-users] Changing Grouper ID
>
> 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
>
> s=GrouperSession.start(SubjectFinder.findRootSubject())
> m=MemberFinder.findByUuid(s, "<uuid>")
> m.setSubjectId("newId")
>
> Tom
>
> 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 m.setSubjectId(newId);
> >
> > Gary
> >
> > --On 17 April 2008 11:31 -0500 Thomas M Goerger
> > <>
> > wrote:
> >
> >> Do I just add that by adding the attribute to the grouper.properties
> >> 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.
> >>>
> >>> Gary
> >>>
> >>> --On 17 April 2008 09:56 -0500 Thomas M Goerger
> >>> <>
> wrote:
> >>>
> >>> > 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
> >



Archive powered by MHonArc 2.6.16.

Top of Page