blob: f8708d3f539ddeace79397661c51c95bd7929dac [file] [log] [blame]
Fredrik Luthander700f6de2014-03-17 01:07:58 +01001= gerrit ls-members
James Ring8e342722013-05-01 01:40:53 -07002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
James Ring8e342722013-05-01 01:40:53 -07004gerrit ls-members - Show members of a given group
5
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08007--
James Ring8e342722013-05-01 01:40:53 -07008'ssh' -p <port> <host> 'gerrit ls-members GROUPNAME'
9 [--recursive]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080010--
James Ring8e342722013-05-01 01:40:53 -070011
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080012== DESCRIPTION
James Ring8e342722013-05-01 01:40:53 -070013Displays the members of the given group, one per line, so long as the given
14group is visible to the user. The users' id, username, full name and email are
15shown tab-separated.
16
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080017== ACCESS
James Ring8e342722013-05-01 01:40:53 -070018Any user who has configured an SSH key.
19
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080020== SCRIPTING
James Ring8e342722013-05-01 01:40:53 -070021This command is intended to be used in scripts. Output is either an error
22message or a heading followed by zero or more lines, one for each member of the
23group. If any field is not set, or if the field is the user's full name and the
24name is empty, "n/a" is emitted as the field value.
25
26All non-printable characters (ASCII value 31 or less) are escaped
27according to the conventions used in languages like C, Python, and Perl,
28employing standard sequences like `\n` and `\t`, and `\xNN` for all
29others. In shell scripts, the `printf` command can be used to unescape
30the output.
31
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080032== OPTIONS
James Ring8e342722013-05-01 01:40:53 -070033--recursive::
34 If a member of the group is itself a group, the sub-group's
35 members are included in the list. Otherwise members of any sub-group
36 are not shown and no indication is given that a sub-group is present
37
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080038== EXAMPLES
James Ring8e342722013-05-01 01:40:53 -070039
40List members of the Administrators group:
41=====
42 $ ssh -p 29418 review.example.com gerrit ls-members Administrators
43 id username full name email
44 100000 jim Jim Bob somebody@example.com
45 100001 johnny John Smith n/a
46 100002 mrnoname n/a someoneelse@example.com
47=====
48
49List members of a non-existent group:
50=====
51 $ ssh -p 29418 review.example.com gerrit ls-members BadlySpelledGroup
52 Group not found or not visible
53=====
54
55GERRIT
56------
57Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070058
59SEARCHBOX
60---------