p4 groups
List groups of users.
Syntax
p4 [g-opts] groups [-m max] [-v] [group]
p4 [g-opts] groups [-m max] [-i [-v]] user | group
p4 [g-opts] groups [-m max] [-g | -u | -o] name
Description
The p4 groups
command shows a list, in alphabetical order, of all current group names.
The p4 groups user
commands show the groups containing that user.
The p4 groups group
command lists the groups for which group
is a subgroup. (See the subgroup
field of the p4 group
form.)
The -i
option with a user argument shows all the groups the user belongs to, including by membership in a subgroup.
The -i
option with a group
argument is equivalent to the p4 groups group
command.
The -m max
option limits the output to the
first max
groups.
The p4 -ztag groups
displays tagged output, which includes the Description
field, among other fields of p4 group.
MaxLimit fields
The "MaxLimit" fields are MaxResults
,
MaxScanRows
, MaxLockTime
,
MaxOpenFiles
, MaxMemory
, and Timeout
.
- To display the values for the "MaxLimit" fields, use
p4 groups -v
for all groups, orp4 groups -v groupname
for the specified group. - For the list of
commands that are affected by any the "MaxLimit" fields, see the output of the
p4 help maxresults
command.
Options
|
Indicates that the |
|
Display groups to which the |
|
List only the first |
|
List groups owned by the named user. |
|
List groups for whom the specified user is a member. |
|
Display verbose output that includes the values of |
|
See Global options. Use |
Usage Notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
N/A |
N/A |
|
- To see all the members of a particular group, use
p4 group
-o groupname
. This variation ofp4 group
requires onlylist
access. -
The command returns no output if there is no object to report on.
Examples
Command | Description | Example Output |
---|---|---|
|
Display the names of all groups of which user |
italy |
p4 groups italy
|
List the groups for which italy is a subgroup. |
southern-europe |
|
Display the names of all groups of which user |
southern-europe italy |
Related Commands
To create or edit an existing group of users |
|
To view a list of all the members and specifications of a particular group |
|
To set Helix Server access levels for the members of a particular group |