blob: 961e0633b2b8deb24d3c1e7432e03a24ec38f1a1 [file] [log] [blame]
Edwin Kempincf6c3592011-09-01 15:55:15 +02001gerrit ls-groups
2================
3
4NAME
5----
6gerrit ls-groups - List groups visible to caller
7
8SYNOPSIS
9--------
10[verse]
11'ssh' -p <port> <host> 'gerrit ls-groups'
Edwin Kempine11aeae2011-09-05 15:48:33 +020012 [--project <NAME>]
Edwin Kempin4d5f4b72011-09-06 13:12:53 +020013 [--visible-to-all]
Edwin Kempin6ac5fd62011-09-29 10:50:29 +020014 [--type {internal | ldap | system}]
Edwin Kempincf6c3592011-09-01 15:55:15 +020015
16DESCRIPTION
17-----------
18Displays the list of group names, one per line, that are visible to
19the account of the calling user.
20
21If the caller is a member of the privileged 'Administrators' group,
22all groups are listed.
23
24ACCESS
25------
26Any user who has configured an SSH key.
27
28SCRIPTING
29---------
30This command is intended to be used in scripts.
31
Edwin Kempine11aeae2011-09-05 15:48:33 +020032OPTIONS
33-------
34--project::
35-p::
36 Name of the project for which the groups should be listed. Only
37 groups are listed for which any permission is set on this project
38 (or for which a permission is inherited from a parent project).
39 Multiple --project options may be specified to specify additional
40 projects. In this case all groups are listed that have a
41 permission for any of the specified projects.
42
Edwin Kempin4d5f4b72011-09-06 13:12:53 +020043--visible-to-all::
44 Displays only groups that are visible to all registered users
45 (groups that are explicitly marked as visible to all registered
46 users).
47
Edwin Kempin6ac5fd62011-09-29 10:50:29 +020048--type::
49 Display only groups of the specified type. If not specified,
50 groups of all types are displayed. Supported types:
51+
52--
53`internal`:: Any group defined within Gerrit.
54`ldap`:: Any group defined by an external LDAP database.
55`system`:: Any system defined and managed group.
56--
57
Edwin Kempincf6c3592011-09-01 15:55:15 +020058EXAMPLES
59--------
60
61List visible groups:
62=====
63 $ ssh -p 29418 review.example.com gerrit ls-groups
64 Administrators
65 Anonymous Users
66 MyProject_Committers
67 Project Owners
68 Registered Users
69=====
70
Edwin Kempine11aeae2011-09-05 15:48:33 +020071List all groups for which any permission is set for the project
72"MyProject":
73=====
74 $ ssh -p 29418 review.example.com gerrit ls-groups --project MyProject
75 MyProject_Committers
76 Project Owners
77 Registered Users
78=====
79
Edwin Kempincf6c3592011-09-01 15:55:15 +020080GERRIT
81------
82Part of link:index.html[Gerrit Code Review]