guides:resetting_cloud_access_credentials_on_deleted_admin_accounts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guides:resetting_cloud_access_credentials_on_deleted_admin_accounts [2019/03/11 08:59] testaccountguides:resetting_cloud_access_credentials_on_deleted_admin_accounts [2025/05/12 13:37] (current) – external edit 127.0.0.1
Line 5: Line 5:
 This solution requires manipulation of the UniFi controller's database. If you're not comfortable working with the mongo CLI, do not attempt the following steps. Take a full backup of your UniFi controller before proceeding! This solution requires manipulation of the UniFi controller's database. If you're not comfortable working with the mongo CLI, do not attempt the following steps. Take a full backup of your UniFi controller before proceeding!
  
-  * Connect to mongodb on the UniFi controller host:+Connect to mongodb on the UniFi controller host:
  
 ''mongo --port 27117'' ''mongo --port 27117''
  
-  * Select the UniFi Database: +Switch to the UniFi Database:  
 + 
 +''use ace'' 
 + 
 +Show all admins: 
 + 
 +''db.admin.find()'' 
 + 
 +Note the "ubic_uuid" associated with each account. 
 + 
 +Show all settings: 
 + 
 +''db.setting.find()'' 
 + 
 +Look for the line that begins: 
 + 
 +''{ "_id" : ObjectId("[objectid]"), "key" : "super_cloudaccess", "enabled" : true, "ubic_uuid" : "[uuid]"'' 
 + 
 +and note the "ubic_uuid" listed in this line. 
 + 
 +If the ubic_uuid matches an account that no longer exists, the cloud connectivity issue may be resolved by changing it to the uuid for a current Ubiquiti community account. If the current UniFi controller account doesn't have a ubic_uuid shown with its object in the db.admin.find() output, log into that account on the UniFi controller and attempt to enable cloud access for that user. Note that the UniFi controller may not show anything different, but go back to mongo and run db.admin.find() again and a ubic_uuid should now be associated with the admin account. 
 + 
 +Use the command: 
 + 
 +''db.setting.update({ _id: ObjectId("[objectid]") }, { $set: { ubic_uuid: "[uuid of desired user]"}})'' 
 +to update the cloud access to a current account 
 + 
 +Use ''exit'' to leave the mongo CLI 
 + 
 +Refresh the Cloud Access settings page, and the option to toggle Cloud Access should now be visible, along with a button to Disable and Remove cloud access. It may be necessary to disable cloud access and then turn it on again to restore full connectivity with the new credentials, but these options should now be visible where they were not previously. After updated credentials are entered, Cloud Access should function as expected.
  • guides/resetting_cloud_access_credentials_on_deleted_admin_accounts.1552312794.txt.gz
  • Last modified: 2025/05/12 13:37
  • (external edit)