p4 renameuser

Rename a user and modify all database records that mention the user.

Syntax

p4 [g-opts] renameuser [-f] --from=old --to=new

Description

The p4 renameuser command renames a user and modifies the following elements to reflect this change:

The user name is not changed in descriptive text fields (such as job descriptions or change descriptions). It is only changed where the name appears as the owner or user field of the database record.

Protection table entries that apply to the user are updated only if the Name field exactly matches the user name. If the Name field contains wildcards, it is not modified.

The only job field that is processed is attribute code 103. If you have included the user name in other job fields, they will need to be changed manually.

The p4 renameuser command does not modify anything in the spec depot.

Important

If you are renaming a user who is being authorized by means of a P4AUTH configuration, you must issue the p4 renameuser command for every server that the user is authorized to use.

Note

Helix Swarm is not affected.

Usage and Limitations

For best results, follow these guidelines:

Options

--from=old

The name of the old user.

--to=new

The name of the new user.

-f

Forces the command to execute without checking for accidental merge checks that might have happened if the new user had already been used in this server. If the new user name has never been used before, you can improve performance using this option.

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

Related Commands

To recompute digest values after the rename for certain files.

p4 verify

To create a user or manage user preferences.

p4 user

To list existing users.

p4 users