Renaming user accounts

KB Home   |   Renaming user accounts

Main.RenameUserAccounts History

Hide minor edits - Show changes to output

July 14, 2017, at 10:33 PM by Brad Stone - Added clarification that quotation marks are not required, only if username contains a space
Changed lines 14-15 from:
           server-command rename-user "<old_username>" "<new_username>"
to:
           server-command rename-user <old_username> <new_username>
Added lines 17-20:

If either of the usernames contains a space, you will be required to include quotation marks to differentiate the two names. For example:

            server-command rename-user  "john smith"  "jsmith"
November 21, 2013, at 12:04 PM by rossm - tweaked keywords
Changed line 27 from:
[-Keywords: re-naming, re-name, rename, married, change name, editing user accounts-]
to:
[-Keywords: re-naming, re-name, rename, married, change name, editing user accounts, merge name, merge account, combine user, merge user-]
Changed line 27 from:
[-Keywords: re-naming, re-name, editing user accounts-]
to:
[-Keywords: re-naming, re-name, rename, married, change name, editing user accounts-]
Changed lines 5-8 from:
PaperCut uses the username as the primary user identifier.  In effect it's the ''primary key'' in the database.  Hence PaperCut  treats renaming an Active Directory user account as a brand new account.  It's equivalent to deleting the old account and adding a new account.  Due to limitations in the Windows API, it's not possible for us to use things like SAM account `UIDs to identify accounts and hence we can't support automatic renaming.

PaperCut does however provide some advanced scripting tools that can be used to manage account renaming.
  The [[https://www.papercut.com/products/ng/manual/apdx-tools.html|server-command]] program can be used either directly, or in a script to manually facilitate account renaming.  The procedure is as follows:
to:
PaperCut uses the username as the primary user identifier.  In effect it's the ''primary key'' in the database.  Hence PaperCut  treats renaming an Active Directory user account as a brand new account.  It's equivalent to deleting the old account and adding a new account.  Due to limitations in the Windows API, and the need to be cross platform, it's not possible for us to use things like SAM account `UIDs to identify accounts and hence we can't support automatic renaming.

PaperCut does however provide some advanced scripting tools that can be used to manage account renaming, usually as part of a user name change script that may change names in multiple systems in one go.
The [[https://www.papercut.com/products/ng/manual/apdx-tools.html|server-command]] program can be used either directly, or in a script to manually facilitate account renaming.  The procedure is as follows:
Changed lines 22-23 from:
Advanced network/system administrators may wish to use [[https://www.papercut.com/products/ng/manual/apdx-tools.html|server-command]] directly in a [@rename-user@] script or batch file.  For example, this single script would rename the user in AD, PaperCut and any other database/system around the organization all in one go.
to:
Advanced network/system administrators may wish to use [[https://www.papercut.com/products/ng/manual/apdx-tools.html|server-command]] directly in a [@rename-user@] script or batch file.  For example, this single script would rename the user in AD, PaperCut, email system, home drive names, and any other database/system around the organization all in one go.
Changed lines 3-6 from:
Q: I have renamed my users in Active Directory.  How do I also rename my accounts in PaperCut?

PaperCut uses the username as
the primary user identify.  In effects, it's the ''primary key'' in the database.  PaperCut hence treats a renaming an Active Directory user account as a brand new account.  For example, it's equivilent to deleting the old account and adding a new account.  Due to limitations in the Windows API, it's not possible for us to use things like SAM account `UIDs to identify accounts and hence we can't support automatic renaming.
to:
Q: I have renamed my users in the directory (e.g. in Active Directory).  How do I also rename my accounts in PaperCut?

PaperCut uses
the username as the primary user identifier.  In effect it's the ''primary key'' in the database.  Hence PaperCut treats renaming an Active Directory user account as a brand new account.  It's equivalent to deleting the old account and adding a new account.  Due to limitations in the Windows API, it's not possible for us to use things like SAM account `UIDs to identify accounts and hence we can't support automatic renaming.
Changed lines 11-12 from:
->'''2.'''  Open a command promt (cmd.exe) on the server running PaperCut and type:
to:
->'''2.''' Open a command prompt (cmd.exe) on the server running PaperCut and type:
Deleted lines 23-24:

[-keywords: re-naming, re-name, editing user accounts -]
Changed lines 25-26 from:
''Categories:'' [[!Users]], [[!Administration]]
----
to:
''Categories:'' [[Category.Users|+]], [[Category.Administration|+]]
----
[-Keywords: re-naming, re-name, editing user accounts-]
Changed lines 20-21 from:
The same procedure may be used on Linux, Novell or Mac systems.  The path to server-command will however vary depending on the platform.
to:
The same procedure may be used on Linux, Novell or Mac server systems.  The path to server-command will however vary depending on the platform.
Added lines 20-21:
The same procedure may be used on Linux, Novell or Mac systems.  The path to server-command will however vary depending on the platform.
Changed lines 9-12 from:
# Re-name the account in Active Directory.

# Open a command promt (cmd.exe) on the server running PaperCut and type:
to:
->'''1.''' Re-name the account in Active Directory.

->'''2.''' Open a command promt (cmd.exe) on the server running PaperCut and type:
Changed lines 16-19 from:
->Note: Take care to make sure the old and new names are typed correctly.

# The user account should now appear in PaperCut with the new name and all historic print history, credit, print quotas and transaction audit logs should be carried over to the new name.
to:
-->Note: Take care to make sure the old and new names are typed correctly.

->'''3.''' The user account should now appear in PaperCut with the new name and all historic print history, credit, print quotas and transaction audit logs should be carried over to the new name.
Changed lines 3-6 from:
Q: I have renamed my users in Active Directory.  How do I rename my accounts in PaperCut.

PaperCut uses the username as the primary user identify.  In affects, it's the ''primary key'' in the database.  PaperCut hence treats a renaming an Active Directory user account as a brand new account.  For example, it's equivilent to deleting the old account and adding a new account.  Due to limitations in the Windows API, it's not possible for us to use things like SAM account UIDs to identify accounts and hence we can't support automatic renaming.
to:
Q: I have renamed my users in Active Directory.  How do I also rename my accounts in PaperCut?

PaperCut uses the username as the primary user identify.  In effects, it's the ''primary key'' in the database.  PaperCut hence treats a renaming an Active Directory user account as a brand new account.  For example, it's equivilent to deleting the old account and adding a new account.  Due to limitations in the Windows API, it's not possible for us to use things like SAM account `UIDs to identify accounts and hence we can't support automatic renaming.
Changed lines 1-2 from:
(title:Renaming user accounts:)
to:
(:title Renaming user accounts:)
Changed lines 5-8 from:
PaperCut uses the username as the primary user identify.  In affects, it's the ''primary key'' in the database.  PaperCut hence treats a renaming an Active Directory user account as a brand new account.  For example, it's equivilent to deleting the old account and adding a new account.  Due to limitations in the Windows API, it's not possible for us to use things like SAM account UID's to identify accounts and hence we can't support automatic renaming.

PaperCut does however provide some advanced scripting tools that can be used to manage account renaming.  The [[https://www.papercut.com/products/ng/manual/apdx-tools.html|server-command]] program can be used either directly, or in a script to facilitate account renaming.  The procedure is as follows:
to:
PaperCut uses the username as the primary user identify.  In affects, it's the ''primary key'' in the database.  PaperCut hence treats a renaming an Active Directory user account as a brand new account.  For example, it's equivilent to deleting the old account and adding a new account.  Due to limitations in the Windows API, it's not possible for us to use things like SAM account UIDs to identify accounts and hence we can't support automatic renaming.

PaperCut does however provide some advanced scripting tools that can be used to manage account renaming.  The [[https://www.papercut.com/products/ng/manual/apdx-tools.html|server-command]] program can be used either directly, or in a script to manually facilitate account renaming.  The procedure is as follows:
Added lines 22-25:

[-keywords: re-naming, re-name, editing user accounts -]
----
''Categories:'' [[!Users]], [[!Administration]]
Added lines 1-22:
(title:Renaming user accounts:)

Q: I have renamed my users in Active Directory.  How do I rename my accounts in PaperCut.

PaperCut uses the username as the primary user identify.  In affects, it's the ''primary key'' in the database.  PaperCut hence treats a renaming an Active Directory user account as a brand new account.  For example, it's equivilent to deleting the old account and adding a new account.  Due to limitations in the Windows API, it's not possible for us to use things like SAM account UID's to identify accounts and hence we can't support automatic renaming.

PaperCut does however provide some advanced scripting tools that can be used to manage account renaming.  The [[https://www.papercut.com/products/ng/manual/apdx-tools.html|server-command]] program can be used either directly, or in a script to facilitate account renaming.  The procedure is as follows:

# Re-name the account in Active Directory.

# Open a command promt (cmd.exe) on the server running PaperCut and type:

            cd c:\Program Files\PaperCut NG\server\bin\win
            server-command rename-user "<old_username>" "<new_username>"

->Note: Take care to make sure the old and new names are typed correctly.

# The user account should now appear in PaperCut with the new name and all historic print history, credit, print quotas and transaction audit logs should be carried over to the new name.

Advanced network/system administrators may wish to use [[https://www.papercut.com/products/ng/manual/apdx-tools.html|server-command]] directly in a [@rename-user@] script or batch file.  For example, this single script would rename the user in AD, PaperCut and any other database/system around the organization all in one go.

----

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on July 14, 2017, at 10:33 PM
Printable View   |   Article History   |   Edit Article