blob: 8188cdbcc23a172af06171bffca98d0167e3b51b [file] [log] [blame]
Gustaf Lundhbf53a702012-11-15 18:24:32 -08001gerrit ls-user-refs
2===================
3
4NAME
5----
6gerrit ls-user-refs - List refs visible to a specific user
7
8SYNOPSIS
9--------
10[verse]
11'ssh' -p <port> <host> 'gerrit ls-user-ref'
12 [--project PROJECT> | -p <PROJECT>]
13 [--user <USER> | -u <USER>]
14
15DESCRIPTION
16-----------
17Displays all refs that the specified user can see.
18
19Allows an administrator to query which refs are visible for
20a user. The command is helpful for admins when debugging why a
21user cannot access certain refs and also to help admins
22verify that certain secret refs are not exposed to the wrong
23groups.
24
25ACCESS
26------
27Administrators
28
29OPTIONS
30-------
31--project::
32-p::
33Name of the project for which the refs should be listed.
34
35--user::
36-u::
37User for which the visible refs should be listed. Gerrit
38will query the database to find matching users, so the
39full identity/name does not need to be specified.
40
41EXAMPLES
42--------
43
44List visible refs for the user "mr.developer" in project "gerrit"
45=====
46$ ssh -p 29418 review.example.com gerrit ls-user-refs -p gerrit -u mr.developer
47=====
48
49GERRIT
50------
51Part of link:index.html[Gerrit Code Review]