p4 group

Add or delete users from a group, or set the maxresults, maxscanrows, maxlocktime, and timeout limits for the members of a group.

Syntax

p4 [g-opts] group [-a | -A] groupname
p4 [g-opts] group -d [-a | -F] groupname
p4 [g-opts] group -o groupname
p4 [g-opts] group -i [-a | -A]

Description

A group is a list of Helix Server users. Use groups to set access levels in the p4 protect form, to limit the maximum amount of data that can be retrieved from Helix Server by particular users with a single command, to set the timeout period for p4 login tickets, and to provide information for the p4 ldapsync command.

To delete a group, use p4 group -d groupname, or call p4 group groupname and remove all the users from the resulting form. Use the -F option with the -d option to force deletion and to remove the group from the protections table and from all groups.

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 service from a single command. The default value is unset. See Usage Notes for more details.

MaxScanRows:

Writable

The maximum number of rows that members of this group can scan from the service from a single command. The default value is unset. See Usage Notes for more details.

MaxLockTime:

Writable

The maximum length of time (in milliseconds) that any one operation can lock any database table when scanning data. The default value is unset. See Usage Notes for more details.

MaxOpenFiles:

Writable

The maximum number of files that a member of a group can open using a single command. See Usage Notes for more details.

Timeout:

Writable

The duration (in seconds) of the validity of a session ticket created by p4 login. The default value is 43,200 seconds (12 hours). To create a ticket that does not expire, set the Timeout: field to unlimited.

PasswordTimeout:

Writable

The length of time (in seconds) for which passwords for users in this group remain valid. To disable password aging, use a value of unset.

LdapConfig

Writable

The LDAP configuration to use when populating the group’s user list from an LDAP query.

For more information, see p4 ldapsync.

LdapSearchQuery

Writable

The LDAP query used to identify the members of the group.

For more information, see p4 ldapsync.

LdapUserAttribute

Writable

The LDAP attribute that represents the user’s username.

For more information, see p4 ldapsync.

Subgroups:

Writable, multi-line

Names of other Helix Server groups.

To add all users in a previously defined group to the group you’re presently working with, include the group name in the Subgroups: field of the p4 group form. Note that user and group names occupy separate namespaces, and thus, groups and users can have the same names.

Every member of any previously defined group you list in the Subgroups: field will be a member of the group you’re now defining.

Owners:

Writable, multi-line

Names of other Helix Server users.

Group owners without super access are permitted to administer this group, provided that they use the -a option.

Group owners are not necessarily members of a group; if a group owner is to be a member of the group, the userid must also be added to the Users: field.

The specified owner does not have to be a Helix Server user. You might want to use an arbitrary name if the user does not yet exist, or if you have deleted the user and need a placeholder until you can assign the spec to a new user.

Users:

Writable, multi-line

The Helix Server usernames of the group members. Each user name must be typed on its own line, and should be indented.

Options

-a

Allow a (non-superuser) group owner to administer the group. The user must be listed in the Owner: field of the group.

-A

Allow a user with admin access to add a new group. Existing groups cannot be modified when this option is used.

-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.

-F groupname

Used only with the -d option, forces the deletion of the specified group, and also removes the group from the protections table and from all groups.

-i

Read the form from standard input without invoking the user’s editor. The new group specification replaces the previous one.

-o

Write the form to standard output without invoking the user’s editor.

g-opts

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

super
(admin for p4 group -A)
(list for p4 group -o or -a)

Related Commands

To modify users' access levels

p4 protect

To view a list of existing groups

p4 groups

To synchronize LDAP and Helix Server groups

p4 ldapsync