blob: a6d492cc3feb277e49fa433e5daaf46faf4e7602 [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
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08008--
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009_ssh_ -p <port> <host> _gerrit ls-members_ GROUPNAME
James Ring8e342722013-05-01 01:40:53 -070010 [--recursive]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080011--
James Ring8e342722013-05-01 01:40:53 -070012
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080013== DESCRIPTION
James Ring8e342722013-05-01 01:40:53 -070014Displays the members of the given group, one per line, so long as the given
15group is visible to the user. The users' id, username, full name and email are
16shown tab-separated.
17
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080018== ACCESS
James Ring8e342722013-05-01 01:40:53 -070019Any user who has configured an SSH key.
20
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080021== SCRIPTING
James Ring8e342722013-05-01 01:40:53 -070022This command is intended to be used in scripts. Output is either an error
23message or a heading followed by zero or more lines, one for each member of the
24group. If any field is not set, or if the field is the user's full name and the
25name is empty, "n/a" is emitted as the field value.
26
27All non-printable characters (ASCII value 31 or less) are escaped
28according to the conventions used in languages like C, Python, and Perl,
29employing standard sequences like `\n` and `\t`, and `\xNN` for all
30others. In shell scripts, the `printf` command can be used to unescape
31the output.
32
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080033== OPTIONS
James Ring8e342722013-05-01 01:40:53 -070034--recursive::
35 If a member of the group is itself a group, the sub-group's
36 members are included in the list. Otherwise members of any sub-group
37 are not shown and no indication is given that a sub-group is present
38
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080039== EXAMPLES
James Ring8e342722013-05-01 01:40:53 -070040
41List members of the Administrators group:
Michael Ochmannb99feab2016-07-06 14:10:22 +020042----
James Ring8e342722013-05-01 01:40:53 -070043 $ ssh -p 29418 review.example.com gerrit ls-members Administrators
44 id username full name email
45 100000 jim Jim Bob somebody@example.com
46 100001 johnny John Smith n/a
47 100002 mrnoname n/a someoneelse@example.com
Michael Ochmannb99feab2016-07-06 14:10:22 +020048----
James Ring8e342722013-05-01 01:40:53 -070049
50List members of a non-existent group:
Michael Ochmannb99feab2016-07-06 14:10:22 +020051----
James Ring8e342722013-05-01 01:40:53 -070052 $ ssh -p 29418 review.example.com gerrit ls-members BadlySpelledGroup
53 Group not found or not visible
Michael Ochmannb99feab2016-07-06 14:10:22 +020054----
James Ring8e342722013-05-01 01:40:53 -070055
56GERRIT
57------
58Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070059
60SEARCHBOX
61---------