p4 protects
Synopsis
Display protections in place for a given user, group, or path.
Syntax
p4 [g-opts
] protects
[-a | -u user
| -g group
]
[-h host
] [-m]
[file
…]
Description
Use the p4 protects command to display the lines from the protections table that apply to a user, group, or set of files.
With no options, p4 protects displays the lines in the
protections table that apply to the current user. If a
file
argument is provided, only those lines in
the protection table that apply to the named files are displayed.
Use the -a
option to display lines for all users, or
-u
, user
-g
, or group
-h
options to display lines for a
specific user, group, or host IP address.
host
Use the -m
option to display a one-word summary of the
maximum applicable access level.
Options
|
Displays protection lines for all users. This option requires
|
|
Displays protection lines that apply to the named group. This
option requires |
|
Displays protection lines that apply to the specified host IP
address. This option requires |
|
Display a one-word summary of the maximum applicable access level. (Note: this does not take into account exclusionary mappings or the specified file path into account.) |
|
Displays protection lines that apply to the named user. This
option requires |
|
See “Global Options”. |
Usage Notes
Can File Arguments Use Revision Specifier? |
Can File Arguments Use Revision Range? |
Minimal Access Level Required |
---|---|---|
No |
No |
|
-
If the
dm.protects.allow.admin
configurable is set to 1, Perforce administrators, in addition to Perforce superusers, can also use p4 protects -a,-g
, and-u
.