Delete Unifi Controller Super Administrator
When a Super Administrator account is created, it has access to all sites. The Unifi Controller handles this by creating a unique user for each site which must be deleted individually when trying to remove the Super Administrator user.
Procedure
You must be a Super Administrator to delete or modify another Super Administrator account.
Delete manually
Preferably, use the automatic method for deleting super administrators. If you are a glutton for tedium, proceed with manual deletion:
- Login to the Unifi Controller
- Pick the first site (or the next site if you’ve already started) in the Sites list
- Go to Settings → Users
- Click the pencil (edit) icon to edit the user
- Demote the user to Administrator or Read Only and save the settings
- Back on the Users list, you will now have the option to delete the user.
- Repeat steps 2-6 above for every site in the controller.
Delete automatically
A community member from the Unifi forums has created an easy to use Powershell script with GUI for mass-deleting super administrators. This can be found at coolriku/Unifi-Tools on Github, specifically the Unifi Super Admin Remover tool. Alternatively the latest version at the time of writing, v0.2, is available in UPCC Google Drive here.
- Download the Unifi Super Admin Remover script and save it as a .ps1 file.
- Right click the file and click “Run with PowerShell”
- In the GUI, set the “Unifi Controller URL:port” field to https://manage.mynet.care:8443
- Click the Get Credentials button to store your Unifi Super Administrator credentials. The script will use these credentials to communicate with Unifi Controller’s API.
- Click Login. If successfully logged in, the “Select Super admin to remove” dropdown menu will populate with a list of all Super Administrator accounts.
- Choose the appropriate Super Administrator user and click “Remove superadmin”.
- The script will make an API call for each site in the Unifi Controller and report back with the status (success/fail) of each call.