gerrit ls-members - Show members of a given group
ssh -p <port> <host> gerrit ls-members GROUPNAME [--recursive]
Displays the members of the given group, one per line, so long as the given group is visible to the user. The users' id, username, full name and email are shown tab-separated.
Any user who has SSH access to Gerrit.
This command is intended to be used in scripts. Output is either an error message or a heading followed by zero or more lines, one for each member of the group. If any field is not set, or if the field is the user’s full name and the name is empty, “n/a” is emitted as the field value.
All non-printable characters (ASCII value 31 or less) are escaped according to the conventions used in languages like C, Python, and Perl, employing standard sequences like
\xNN for all others. In shell scripts, the
printf command can be used to unescape the output.
List members of the Administrators group:
$ ssh -p 29418 review.example.com gerrit ls-members Administrators id username full name email 100000 jim Jim Bob firstname.lastname@example.org 100001 johnny John Smith n/a 100002 mrnoname n/a email@example.com
List members of a non-existent group:
$ ssh -p 29418 review.example.com gerrit ls-members BadlySpelledGroup Group not found or not visible
Part of Gerrit Code Review