Fortinet black logo

rename-admin

rename-admin

Administrators with the Super Admin profile can use this command to rename other administrators.

Note

This command is available only on standalone and primary nodes.

Tooltip

The default administrator (admin) cannot be deleted with the GUI. To delete the admin:

  1. Use rename-admin to rename the admin.
  2. Delete the renamed admin with the GUI.

Syntax

rename-admin [-h| -u | -n]

Option Description

-h

Help information.

-u<username>

Username should be an existing administrator.

-n<new-username>

● Username should follow username format guideline.

● New-username cannot be admin.

● New-username should not be same as an existing administrator.

Before renaming the default admin:
  • Backup the admin to ensure you can restore it if you change your mind.

  • Ensure the administrator is not logged in.

For information about default administrators, see Administrators in the FortiSandbox Administration Guide.

After renaming the default admin:
  • You cannot use the GUI to recreate the default admin.

  • You can create admin in maintainer mode.

Example

rename-admin –uadmin –nnewadmin

WARNING: You are going to rename an Administrator name. Please make sure you have closed all administrative access sessions of this user, including web GUI, SSH/Telnet etc. Do you want to continue? (y/n)y

rename-admin

Administrators with the Super Admin profile can use this command to rename other administrators.

Note

This command is available only on standalone and primary nodes.

Tooltip

The default administrator (admin) cannot be deleted with the GUI. To delete the admin:

  1. Use rename-admin to rename the admin.
  2. Delete the renamed admin with the GUI.

Syntax

rename-admin [-h| -u | -n]

Option Description

-h

Help information.

-u<username>

Username should be an existing administrator.

-n<new-username>

● Username should follow username format guideline.

● New-username cannot be admin.

● New-username should not be same as an existing administrator.

Before renaming the default admin:
  • Backup the admin to ensure you can restore it if you change your mind.

  • Ensure the administrator is not logged in.

For information about default administrators, see Administrators in the FortiSandbox Administration Guide.

After renaming the default admin:
  • You cannot use the GUI to recreate the default admin.

  • You can create admin in maintainer mode.

Example

rename-admin –uadmin –nnewadmin

WARNING: You are going to rename an Administrator name. Please make sure you have closed all administrative access sessions of this user, including web GUI, SSH/Telnet etc. Do you want to continue? (y/n)y