Managing users in gerrit

1,955 views
Skip to first unread message

Doron Shai

unread,
Oct 1, 2015, 7:21:01 AM10/1/15
to Repo and Gerrit Discussion
What is the correct way to manage users and their keys and emails in Gerrrit?

Via the command line i can not find a way to see all current users and also can not delete users which is a problem

Martin Fick

unread,
Oct 1, 2015, 2:01:45 PM10/1/15
to repo-d...@googlegroups.com, Doron Shai
Users are an integral part of the history of code reviews,
so deleting them is generally not good. Gerrit supports
making users inactive to prevent them from logging in again.

See the set--account ssh command for manipulating users:

https://gerrit-review.googlesource.com/Documentation/cmd-
set-account.html

-Martin
--
The Qualcomm Innovation Center, Inc. is a member of Code
Aurora Forum, hosted by The Linux Foundation

Matt Hart

unread,
Oct 1, 2015, 4:50:28 PM10/1/15
to Repo and Gerrit Discussion
I am also looking for a way to see all current users, with either the REST api or the ssh shell. I had hoped that I could list the users of the group "Registered Users" but that seems to be blocked in the REST api.

I saw a thread on here which suggested poking around with gsql to dump the list of users, not ideal.

David Pursehouse

unread,
Oct 1, 2015, 9:13:49 PM10/1/15
to Matt Hart, Repo and Gerrit Discussion
On 10/02/2015 03:05 AM, Matt Hart wrote:
> I am also looking for a way to see all current users, with either the
> REST api or the ssh shell. I had hoped that I could list the users of
> the group "Registered Users" but that seems to be blocked in the REST api.
>

The admin-console plugin provides an ls-users command.

https://gerrit-review.googlesource.com/#/admin/projects/plugins/admin-console


> I saw a thread on here which suggested poking around with gsql to dump
> the list of users, not ideal.
>
> On Thursday, 1 October 2015 04:21:01 UTC-7, Doron Shai wrote:
>
> What is the correct way to manage users and their keys and emails in
> Gerrrit?
>
> Via the command line i can not find a way to see all current users
> and also can not delete users which is a problem
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to repo-discuss...@googlegroups.com
> <mailto:repo-discuss...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages