pi user edit

Command Help

> pi user edit -h
Usage: pi user edit [-h] [--template TEMPLATE] identifier

Description: Edit an existing User. The command puts the User specification
into a temporary file and invokes the editor specified by the EDITOR
environment variable. Saving the file edits the User.

Positional arguments:
  identifier            The name of the User being edited.

Optional arguments:
  --template TEMPLATE, -t TEMPLATE
                        Use the specified template to edit the User. The
                        template is an ASCII file that defines the User. This
                        can be used to edit Users with a script and avoid the
                        interactive editor. To read the template from STDIN,
                        set TEMPLATE='-'.
  -h, --help            Show this help message and exit

Examples:
# Invoke the editor to modify User john.
  pi user edit john

# Modify User john using the john.info template.
  pi user edit -t john.info john

# Modify User john using redirected STDOUT from script as template.
  edit_user.py | pi user edit -t - john

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

Example

> pi user edit newuser
Successfully edited User 'newuser'.