Access level required to run each command
The following tables list the minimum access level required to run each command.
A | B | C | D | E | F | G | H | I | J | K | L | M | O | P | R | S | T | U | V - Z
For example, because p4 add requires at
least open access, you can run p4 add if
you have open, write, admin, or
super access. To learn more, see p4 protect in the P4 CLI Reference.
Commands that list files, such as p4 describe, list
only those files to which the user has at least list
access.
Some commands take a -f flag that can
only be used by
P4 Server
superusers. An example is p4 change when you edit
a previously submitted changelist. To learn more, see Forcing operations with the -f flag
for details.
A
| Command | Access Level | Notes |
|---|---|---|
|
|
||
|
|
An operator user can use all options except An operator user with super can use all options. |
|
aliases
|
none | |
|
|
||
|
|
||
|
|
The |
B
| Command | Access Level | Notes |
|---|---|---|
bgtask
|
super
|
|
|
|
The |
|
|
|
C
| Command | Access Level | Notes |
|---|---|---|
|
|
||
|
|
The |
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. |
|
check-permission (graph)
|
admin
|
|
|
|
||
|
|
The |
|
client (graph)
|
||
|
|
||
|
|
On the remote server. |
|
|
|
Also available to an operator user. |
|
|
|
list access to the source files; |
|
|
|
list access to at least one file in any depot is
required to view an existing counter’s value; Also available to an operator user, including |
|
|
|
Also available to an operator user. | |
|
|
D
| Command | Access Level | Notes |
|---|---|---|
|
|
Also available to a service user. | |
|
|
Also available to an operator user. | |
|
|
Also available to an operator user. | |
|
|
||
delete (graph)
|
write protection on path, write-ref permission on depot or repo. |
|
|
|
The |
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. super for Also available to an operator user. |
|
|
|
The |
|
describe (graph)
|
list
|
|
diagnostics
|
admin
|
|
|
|
or list to use the -As option. |
|
diff (graph)
|
||
|
|
or list to use the -As option. |
|
diff2 (graph)
|
list protection, read permission |
|
|
|
||
dirs (graph)
|
||
|
|
Also available to an operator user. |
E
| Command | Access Level | Notes |
|---|---|---|
|
|
||
edit (graph)
|
||
|
|
Also available to a service user. | |
extension
|
super
|
The super user can delegate some permissions to admins and users. |
F
| Command | Access Level | Notes |
|---|---|---|
failback
|
super
|
|
failover
|
super
|
|
|
|
||
|
|
||
filelog (graph)
|
list protection, read permission |
|
|
|
||
files (graph)
|
list protection, read permission |
|
|
|
||
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. |
|
|
|
||
|
|
||
fstat (graph)
|
G
| Command | Access Level | Notes |
|---|---|---|
grant-permission (graph)
|
super
|
super from p4 protect applies to all repos and graph depots
a user assigned to be |
graph gc (graph)
|
super
|
|
graph lfs-lock (graph)
|
||
graph lfs-locks (graph)
|
||
graph lfs-unlock (graph)
|
||
graph log (graph)
|
read though p4 grant-permission |
|
graph purge-refhist (graph)
|
Either repo admin, based on p4 grant-permission, or the owner of the repo. |
|
graph rebase (graph)
|
list protection, force-push permission |
|
graph recompute-refcnts (graph)
|
super
|
|
graph show-ref (graph)
|
super
|
|
graph tag (graph)
|
read to see the tag,
write-ref to overwrite the tag,
delete-ref to delete the tag, create-ref to create a tag |
|
graph tags (graph)
|
read on the repos with tags |
|
graph verify (graph)
|
list
|
|
|
|
||
|
|
The The The |
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. |
H
| Command | Access Level | Notes |
|---|---|---|
|
|
list protection, read permission |
|
have (graph)
|
||
heartbeat
|
super
|
Also available to an operator user. |
|
|
||
help-graph (graph)
|
list
|
I
| Command | Access Level | Notes |
|---|---|---|
|
|
||
|
|
Also available to a service user. |
|
|
|
||
|
|
The user must have |
|
|
|
||
|
|
||
|
|
J
| Command | Access Level | Notes |
|---|---|---|
|
|
The The |
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. Also available to an operator user. |
|
|
|
The |
|
|
|
p4 journalcopy -l is also available to an operator user. |
|
|
|
Also available to an operator user. | |
|
super |
K
| Command | Access Level | Notes |
|---|---|---|
|
|
list access to at least one file in any depot is
required to view an existing key’s value; |
|
|
|
admin access is required if the
|
L
| Command | Access Level | Notes |
|---|---|---|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. The |
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. |
|
|
|
||
|
|
||
|
|
||
|
|
||
|
|
The |
|
|
|
||
|
|
||
lock (graph)
|
list protection, read permission |
|
|
|
Also available to an operator user. |
|
|
|
Also available to an operator user. | |
|
|
||
|
|
Also available to an operator user and a service user | |
login2
|
list
|
|
|
|
Also available to an operator user and a service user. An operator with |
|
|
|
Also available to an operator user. | |
|
|
Also available to an operator user. | |
|
|
Also available to an operator user. | |
|
|
Also available to an operator user. | |
|
|
Also available to an operator user. | |
|
|
Also available to an operator user. |
M
| Command | Access Level | Notes |
|---|---|---|
|
|
||
merge (graph)
|
||
|
|
super access is required to terminate or clear processes, or to view arguments. Also available to an operator user. |
|
|
read or write |
read for |
O
| Command | Access Level | Notes |
|---|---|---|
|
|
||
|
|
||
opened (graph)
|
read protection, read permission |
P
| Command | Access Level | Notes |
|---|---|---|
|
|
Also available to an operator user and a service user. |
|
|
|
Also available to an operator user. | |
|
|
||
|
|
||
print (graph)
|
list protection, read permission |
|
|
|
list to read, |
|
|
|
||
|
|
super access is required to use the
|
|
|
|
Must be connected to a P4 Proxy. |
|
|
|
For stream owner. |
|
pubkey (graph)
|
super
|
super to update or delete someone else's pubkey, list to add, update, or delete your own |
pubkeys (graph)
|
list
|
|
|
|
p4 pull -lj and p4 pull -ls are available to an operator user. |
|
|
read or write |
read on the local server or |
R
| Command | Access Level | Notes |
|---|---|---|
|
|
||
reconcile (graph)
|
|
|
|
|
admin access is required to use |
|
|
open or |
open or |
|
|
|
||
|
read or write |
read for |
|
renameclient
|
admin
|
or owner of client workspace |
|
|
||
|
|
||
|
|
||
repo (graph)
|
|
|
repos (graph)
|
read on this repo through p4 grant-permission (graph) |
|
reshelve
|
open
|
|
|
|
||
resolve (graph)
|
||
|
|
||
|
|
||
|
write or admin |
write or |
|
|
|
||
revert (graph)
|
list
|
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. |
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. |
|
revoke-permission (graph)
|
S
| Command | Access Level | Notes |
|---|---|---|
|
|
super access is required to add or modify a server spec. | |
|
|
super access is required to set the server ID. |
|
|
|
An operator user can run p4 servers and p4 servers -J |
|
|
|
||
|
|
admin access is required to forcibly delete shelved files with p4 shelve -f -d |
|
show-permission (graph)
|
||
show-permissions (graph)
|
||
show-ref (graph)
|
super
|
|
|
|
||
|
|
||
storage
|
admin
|
super to use the -U option |
|
|
admin access is required to use the |
|
streamlog
|
open
|
|
|
|
||
streamspec
|
admin
|
|
|
|
||
submit (graph)
|
write
|
write protection on path to submit |
|
open or |
open to use the |
|
switch (graph)
|
||
|
|
||
sync (graph)
|
T
| Command | Access Level | Notes |
|---|---|---|
|
|
||
|
|
||
topology
|
super
|
Also available to an operator user. |
|
|
||
|
|
||
|
|
The |
U
| Command | Access Level | Notes |
|---|---|---|
undo
|
open
|
|
|
|
admin access is required to use |
|
|
|
The |
|
unlock (graph)
|
|
|
|
|
||
|
|
||
|
|
||
|
|
||
upgrades
|
super
|
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. The Also available to an operator user and a service user |
|
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. If the |
V - Z
| Command | Access Level | Notes |
|---|---|---|
|
|
Also available to an operator user. | |
|
|
This command doesn’t operate on specific files. Permission is granted to run the command if the user has the specified access to at least one file in any depot. |
|
|
|
||
|
|
||
|
|