p4 protects

Display protections in place for a given user, group, or path.

Syntax

p4 [g-opts] protects [-s spec][-a | -u  user | -g group] [-h host] [-m] [file ...]
p4 [g-opts] protects -M [-u user | -g group] [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.

Options

-a

Displays protection lines for all users. This option requires super access.

-g group

Displays protection lines that apply to the named group. This option requires super access.

-h host

Displays protection lines that apply to the specified host IP address. This option requires super access.

-m

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.)

-M Differs from -m because -M does take into account exclusions and the specified file path.

-s spec

Display information from the specified earlier version of the protect file. The spec parameter specifies the path of the file version you’re interested in.

You must define a spec depot for protect forms in order to automatically save protect revisions every time you edit a form.

-u user

Displays protection lines that apply to the named user. This option requires super access.

g-opts

See Global Options.

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

No

No

list,
super for -a, -h, -g, -u

Related Commands

To edit the protections table

p4 protect