Perforce Command Reference:   [Index] [Prev] [Next]


p4 group

Synopsis

Add or delete users from a group; set the maxresults value for the members of that group.

Syntax

p4 [g-opts] group groupname
p4
[g-opts] group -d groupname
p4 [g-opts] group -o groupname
p4 [g-opts] group -i

Description

A group is a list of Perforce users. Groups have two purposes:

To delete a group, use p4 group -d groupname, or call p4 group groupname and remove all the users from the resulting form.

Form Fields

Field Name Type Description
Group: Read-only The name of the group, as entered on the command line.
Maxresults: Writable The maximum number of results that members of this group can access from the server from a single command. The default value is unlimited. See the Usage Notes, below, for more details.
Users: Writable,
multi-line
The Perforce usernames of the group members.

Options

-d groupname Delete group groupname. The members of the group are affected only if their access level or maxresults value changes as a result of the group's deletion.
-i Read the form from standard input without invoking the user's editor. The new group specification will replace the previous one.
-o groupname Write the form to standard output without invoking the user's editor.
g_opts See global options section.

Usage Notes

Can File Arg Use
Revision Specifier?
Can File Arg
Use Revision Range?
Minimal
Access Level Required
<NA> <NA> super

The Perforce superuser can limit the amount of data that the server is allowed to return to the client by setting the maxresults value for groups of users. If the maxresults value is violated, the server request will fail and the user will be asked to limit his query.
If a user belongs to multiple groups, the server computes her maxresults value to be the maximum of the maxresults for all the groups the user is in. If a particular user is not in any groups, her maxresults value is unlimited.
The speed of most server hardware should make it unnecessary to ever set a maxresults value below 10,000.
The commands that are affected by the maxresults value are:


Command
Counted Entity How Affected Users
can Reduce Command Output
p4 changes changes Using p4 changes -m numchanges.
p4 changes files file revisions Use a more restrictive file pattern on the command line.
p4 diff2 files Use a restrictive file pattern on the command line.
p4 filelog file revisions Use a restrictive file pattern on the command line.
p4 files files Use a restrictive file pattern on the command line.
p4 fixes fixes The -c changenum or -j jobname flags will restrict this command appropriately
p4 fixes files files Use a more restrictive file pattern on the command line.
p4 integrate files Use a restrictive file pattern on the command line.
p4 integrated file revisions Use a restrictive file pattern on the command line.
p4 jobs jobs The -e jobquery flag will restrict the output to those jobs that meet particular criteria.
p4 jobs files file revisions Use a more restrictive file pattern on the command line.
p4 labelsync files Use restrictive file patterns and the -a flag to build the label's file set in pieces.
p4 print files Use a restrictive file pattern on the command line.
p4 sync files, as mapped through client view Use a restrictive file pattern on the command line.

Related Commands

To modify users' access levels p4 protect
To view a list of existing groups p4 groups



Perforce Command Reference:   [Index] [Prev] [Next]


Copyright 1999 Perforce Software.
Contact us at [email protected]
Last updated: 09/15/99 (Manual version 99.1.cr.6)