Option 1:

  1. Backup the configs of the old controller
  2. Restore the configs to the new controller

Option 2:

  1. SSH into AP with previous controller’s username & password
  2. Reset the AP with this command: ‘syswrapper.sh restor-default’
  3. Reconnect to AP with default credentials ubnt/ubnt
  4. Type: mca-cli shellset-inform x.x.x.x:8080/inform (x.x.x.x is the ip of the new unifi controller)
    mca-cli shell
    set-inform
  5. Logon to new controller and verify that such AP has been adopted

Sample Output:

rambo@Unifi-Controller:/home/rambo# ssh [email protected]
[email protected]'s password: 

BusyBox v1.25.1 () built-in shell (ash)
  ___ ___      .__________.__
 |   |   |____ |__\_  ____/__|
 |   |   /    \|  ||  __) |  |   (c) 2010-2020
 |   |  |   |  \  ||  \   |  |   Ubiquiti Networks, Inc.
 |______|___|  /__||__/   |__|
            |_/                  https://www.ui.com/introduction

      Welcome to UniFi UAP-AC-Pro-Gen2!
UBNT-BZ.v4.3.21# mca-cli shell
UniFi# set-inform 192.168.0.100:8080/inform

Adoption request sent to '192.168.0.100:8080/inform'.  Use the controller to complete the adopt process.

Please note that your SSH session will automatically exit once the device has been ‘adopted’ by the controller.