Create, edit, or delete Helix Server user specifications and preferences.
p4 [g-opts] user [-f] [username]
p4 [g-opts] user -d [-f | -F] username
p4 [g-opts] user -o [username]
p4 [g-opts] user -i [-f]
Use the p4 user
command to edit these settings or to
create new user records. (By default, new users are created
automatically. After installing
Helix Server, a
Helix Server
superuser can control this behavior with the p4 configure
command.)
Types of Helix Server users:
standard users |
|
operator users |
|
service users |
|
When called without a username
, p4
user
edits the specification of the current user. When
called with a username
, the user specification is
displayed, but cannot be changed. The form appears in the editor defined
by the P4EDITOR
environment
variable.
Helix Server
superusers can create new users or edit existing users' specifications
with the -f
(force) option: p4 user -f
username
.
Note that both the -f
and -F
options can be
used to delete users, but the -F
option has additional
effects on protections and groups. See Options
below.
The user who gives a Helix Server command is not necessarily the user under whose name the command runs. The user for any particular command is determined by the following:
p4 user -f
username
, user username
is
edited.-u username
option is used on the command
line (for instance, p4 -u joe submit
), the command
runs as that user named "joe" (a password might be required).P4CONFIG
environment variable
contains a setting for P4USER
,
the command runs as that user.P4USER
environment variable has
been set, the command runs as that user.USER
or USERNAME
environment
variable.Field Name | Type | Description |
---|---|---|
|
Read-only |
The
Helix Server
username under which Be aware of the Limitations on characters in filenames and entities. |
|
Read-only |
Type of user: Important
Once you set the type, you cannot change it. |
|
Writable |
One of the following:
|
|
Writable |
The user’s email address. By default, this is
|
|
Read-only |
The date and time this specification was last updated. |
|
Read-only |
The date and time this user last ran a Helix Server command. |
|
Writable |
The user’s full name. |
|
Writable |
A description of the jobs to appear automatically on all new changelists (see Usage Notes). |
|
Writable |
The user’s password (see Usage Notes ). |
|
Read-only |
The date and time of the user’s last password change. If the user has no password, this field is blank. |
|
Writable List |
A list of files the user would like to review (see Usage Notes). This field can include exclusionary mappings. |
|
Deletes the specified user. Only user
If you have set |
|
Superuser force option; allows the superuser to modify or delete the specified user, or to change the last modified date. |
|
Superuser option; used only with |
|
Read the user specification from standard input. The input must
conform to the |
|
Write the user specification to standard output. |
|
See Global Options. |
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
N/A |
N/A |
|
-d
option can be used by non-superusers only to
delete the user specification that invoked the p4
user
command.
Helix Server
superusers can delete any
Helix Server
user.By default, user records are created without passwords, and any
Helix Server
user can impersonate another by setting P4USER
or by using the globally available-u
option. To prevent another user from impersonating you, set a
password with the p4
passwd
command.
Passwords can be created, edited, or changed in the p4
user
form or by using the p4 passwd
command.
Setting your password in the p4 user
form is only
supported at security levels 0 or 1. You can p4 passwd
to set
passwords at any server security level, and you must use p4 passwd
to set
passwords at higher security levels. For more about how the various
security levels work, see the
Helix Core Server Administrator Guide: Fundamentals.
If you edit a password in the p4 user
form, do
not use the comment character #
within the password;
Helix Server
interprets everything following that character on the same line as a
comment, and does not store it as part of the password.
If the dm.user.resetpassword
configurable has been set,
all users created with passwords are required to reset their
passwords before they can issue commands.
p4
user
form regardless of their length.p4 login
for details),
changing your password automatically invalidates all of your
outstanding tickets.Email:
fields can be listed
for each user with the p4
users
command, and can used for any purpose.The p4 reviews
command, which is used by the
Helix Server
change review daemon, uses the values in the Reviews:
field; when activated, it will send email to users whenever files
they’ve subscribed to in the Reviews:
field have
changed. Files listed in this field must be specified in depot
syntax; for example, if user joe
has a
Reviews:
field value of
//depot/main/... //depot/.../README
then the change review daemon sends joe
email whenever
any README
file has been submitted, and whenever any
file under //depot/main
has been submitted.
There is a special setting for job review when used with the Helix Server change review daemon. If you include the value:
//depot/jobs
in your Reviews:
field, you will receive email when
jobs are changed.
If you set the Jobview:
field to any valid jobview,
jobs matching the jobview appear on any changelists created by this
user. Jobs that are fixed by the changelist should be left in the
changelist when it’s submitted with p4 submit
; other jobs
should be deleted from the form before submission.
For example, suppose the jobs at your site have a field called
Owned-By:
. If you set the Jobview:
field on
your p4 user
form to
Owned-By=
,
all open jobs owned by you appear on all changelists you create. See
yourname
&status=openp4 jobs
for a full
description of jobview usage and syntax.
Operators are intended for system administrators who, even though they have super or admin privileges, are responsible for the maintenance of the Perforce service, rather than the development of software or other assets versioned by the service. Operators can run only the following commands:
|
|
|
|
||
p4 counter
(including |
||
p4 jobs
(including |
||
|
Service users are used in replication environments, and can run only the following commands:
|
|
View the user specification of
Helix Server
user |
|
Edit the user specification for the current Helix Server user. |
|
Delete the user specification for the
Helix Server
user |
|
Run This command does not work at higher security levels. |
|
Create a new
Helix Server
user named |
To view a list of all Helix Server users |
|
To change a user’s password |
|
To view a list of users who have subscribed to review particular files |
|
To control how new users are created by changing the
|