Editing Usernames in Gerrit 2.1.5?

82 views
Skip to first unread message

Furosh One

unread,
Oct 25, 2010, 1:28:42 PM10/25/10
to Repo and Gerrit Discussion
I'm curious about the ability to change a user's name with the 2.1.5 version of Gerrit.

I've looked at "Settings / Profile" and "Settings / Identities".

I added a name to Settings / Profile / "tester", and it saved it but can't rename or change it.
Can I change/edit this name once changed?

Also is this where I'd want to do this?
Or should I be able to add another "Settings / Identity"?


In an older version we had of Gerrit, a user was able to change their email address, save, and then use that as their "SSH Username", then they could
'ssh -v -p 29418  newname@servername'.

Basically this user wants to change it so that he can use the same name he uses for omapzoom and google, while I've setup the Gerrit accounts based on our NIS unix accounts, which Apache uses for authentication. Apache authentication this way works well, but this user wants a way to change it.

Any options in the UI or is this a DB change?
If so, what would I change?

-Regards,
FuRosh

Magnus Bäck

unread,
Oct 25, 2010, 2:47:33 PM10/25/10
to Repo and Gerrit Discussion
On Monday, October 25, 2010 at 19:28 CEST,
Furosh One <fur...@gmail.com> wrote:

> I'm curious about the ability to change a user's name with the 2.1.5
> version of Gerrit.

http://groups.google.com/group/repo-discuss/browse_thread/thread/cb72aad1888a0bb4

[...]

> Any options in the UI or is this a DB change?
> If so, what would I change?

Sorry, can't help with the necessary database changes. The user's row in
the accounts table would of course have to be adjusted, but if there's
anything more to it I'd just be guessing.

--
Magnus B�ck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson

Ragesh For U :-)

unread,
Oct 26, 2010, 2:15:02 AM10/26/10
to Furosh One, Repo and Gerrit Discussion

Shawn Pearce

unread,
Oct 26, 2010, 12:17:31 PM10/26/10
to Furosh One, Repo and Gerrit Discussion
On Mon, Oct 25, 2010 at 10:28, Furosh One <fur...@gmail.com> wrote:
> I'm curious about the ability to change a user's name with the 2.1.5 version
> of Gerrit.

Nope, you can't change it. The reason is we support ${username} in
ref access rules to create per-user branch names. If the user changed
their username, they would lose access to their current branches in
any projects where they had created these types of branches.

> Any options in the UI or is this a DB change?
> If so, what would I change?

You'll need to edit the database by hand. One way to do that is to
delete the current username for the user:

DELETE FROM account_external_ids WHERE external_id LIKE 'username:%'
AND account_id = NNNNN;

And then flush the accounts cache. The user should then be able to
set the username again.

Roke Julian Lockhart Beedell

unread,
Jun 27, 2026, 3:55:03 PM (3 days ago) Jun 27
to Repo and Gerrit Discussion
issues.gerritcodereview.com/issues/40001346#comment5 elaborates on this, and if one subscribes, they shall be notified when the functionality has been implemented.
Reply all
Reply to author
Forward
0 new messages