This section covers different mechanisms to remove local user accounts from different NSX appliances including the NSX Manager and the NSX Edge.
Node Type | UI | API | CLI |
---|---|---|---|
NSX Manager | Supported | DELETE /api/v1/node/users/{userid} | del user <username> |
NSX Edge | Not supported | DELETE /api/v1/transport-nodes/{transport-node-id}/node/users/{userid} | del user <username> |
For details on tasks and behaviors of the NSX Manager versus the NSX Edge, see the NSX Appliance Local User Deletion Behaviors table. Depending on your NSX appliance, refer to the appropriate section to delete a local user. To use the API, refer to "Deleting a Local User in NSX Manager or NSX Edge Using the API." To use the CLI, refer to "Deleting a Local User in NSX Manager or NSX Edge Using the CLI." To use the UI, refer to "Deleting a Local User in NSX Manager Using the UI."
Task | NSX Manager | NSX Edge |
---|---|---|
Delete any local user (root and admin users cannot be removed) | Includes audit, guestuser1, and guestuser2. Also any guest user accounts created by the Enterprise Admin user. | Includes audit, guestuser1, and guestuser2. Once deleted, you will be unable to add these users back onto the NSX Edge. |
Recreate default local user accounts after deletion (audit and default guestuser1 and guestuser2 accounts) | You can delete the audit local user, but users deleted from following node types cannot be recovered so plan accordingly:
|
Recreation of the local user account is not allowed. To get the default users back on to the NSX Edge , you can redeploy an NSX Edge node or deploy a new NSX Edge node. |
Recreate custom local user accounts after deletion | Yes by users with Enterprise Admin role only. | No. This is not allowed on the NSX Edge. |
Deletion of root and admin users | No. | No. |
Synchronization across other nodes after deletion on one node. | Yes across other nodes in the NSX management cluster. | No. It is not supported. |
Deleting a Local User in NSX Manager or NSX Edge Using the API
- Autonomous Edge
- Cloud Service Manager
- Edge
- Public Cloud Gateway
Deleting a Local User in NSX Manager or NSX Edge Using the CLI
To delete local user accounts on an NSX Edge node using the CLI, use the del user <username> command. For details on how to delete local user accounts including audit, default guestuser1 and guestuser2 accounts, and custom guest user accounts, refer to the NSX Command-Line Interface Reference section on System Administration > Lifecycle Management > Nodes > User Management > Users.
Deleting a Local User in NSX Manager Using the UI
Enterprise Admin users can delete local user accounts from NSX Manager using the UI.