p4 users
Print a list of all known users of the current Perforce service.
Syntax
p4 [g-opts] users [-l -a -r -c] [-m max] [user ...]
Description
p4 users displays a list of all the users known to
the current
P4 Server.
For each user, the output includes the
P4 Server
username, their email address, their real name, and the date the user last accessed the service. For example, Maria <mgonzales@company.com> (Maria Gonzales) accessed 2023/11/22
Emails are not unique in P4 Server. Two or more users can share the same email address. Features that rely on email addresses to identify users, such as single sign-on (SSO) authentication, might behave unexpectedly when multiple users share an email address.
If a user argument is provided, only information
pertaining to that user is displayed. The user
argument can contain the * wildcard. All users
matching the wildcard pattern are reported on. If you use a wildcard, put the user argument in quotation marks because the operating system might expand the wildcard to match file names in the current directory.
Use the -m max option to limit the output to the
first max users.
Options
| Option | Description |
|---|---|
|
|
Include service users in the list. |
|
|
On replica servers, only user information from the target server The immediately upstream server for replica servers, edge servers, standby servers, proxies and brokers. See also 'upstream server' and 'central server'. is reported. |
|
|
Login information: includes time of last password change and login ticket expiry, if applicable. You must be a P4 Server superuser to use this option. |
|
|
List only the first |
|
|
On replica servers, only users who have used this replica server
are reported. Returns |
|
|
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 |
|
-
You must be connected to a replica to use
-cor-r, and the-cand-roptions are mutually exclusive. -
If the
run.users.authorizeconfigurable is set to 1, users must authenticate themselves to the Perforce service before running thep4 userscommand.
Related commands
|
To add or edit information about a particular user |
|
|
To edit information about the current client workspace |