Problem:
Needed Unifi gear to be adopted by a controller not on the local network
Solution:
Convert the IP address of the remote controller to hex and add it as a dhcp option on the network your unifi devices are joining
Find the IP address of your Unifi Controller – I was using Unifi’s public service for this, which provided me a public ip

I went to this url and put this public ip in to convert it to a hex value: https://shimi.net/services/opt43/

On DHCP Options on Fortigate, you need to add “01” and “04” before the hex value as a DHCP options on the network your Unifi Devices are joining
This is the working configuration I had setup for my Unifi adoption:
As you can see, its “0104” then the Hexadecimal value provided by the URL for my IP.

Save this in your DHCP Settings and the ubiquiti switch should come online in your cloud controller. This will also work with a local controller with a local IP address.