p4 show-permissions (graph)
Display a user-centric view of the permissions for repos.
For depots of type graph
only.
Syntax
p4 [g-opts] show-permissions -d graphDepot1 [-g group | -u user]
p4 [g-opts] show-permissions -n //graphDepot1/reponame [-g group | -u user]
Description
Unlike p4 show-permission (graph), which requires specifying a repo (or graph depot), this command can report across multiple repos (or graph depots). For some queries, this is convenient.
An administrator is the owner, or a user that has been granted the
admin
permission for that specific graph depot or
repo.
User type | Options |
---|---|
Users |
Running with no arguments shows the current user the permissions that user has across all the repos for which that user has permissions. Adding |
Administrators | Can also use the -u option, but only in conjunction with the -d or -n option, to view the permissions of another user of this admin's depot or repo. |
Super users | Can also use the -u flag to specify another user. |
Certain permissions implicitly include other permissions. If you specify
a permission that can be implicit or explicit, such as
write-ref
, the list shows users that have the specified
permission, either explicitly or implicitly, such as users with
write-all
and admin
. See the "permissions" section of p4 grant permission.
Options
|
Applies to the depot of type |
|
Applies to the repo with the specified name. |
|
Applies to the specified user. |
|
Applies to the specified group. |
|
(Optional) Applies to the specified branch or tag. |
|
See Global options. |
Usage notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
N/A |
N/A |
super, |
Related commands
To show permissions for a specific repo |
|
Check access permission(s) granted to a user of a repo | p4 check-permission (graph) |
To get user-centric "classic" permissions |
p4 protects |