Skip to main content
The UniFi Console integration connects your Ubiquiti UniFi environment to MSPortal so network hardware appears alongside the rest of your managed devices.

Overview

UniFi is treated as an RMM-style device source. Once connected, MSPortal syncs:
  • Sites from the UniFi console, which you match to MSPortal companies
  • Devices (access points, switches, gateways, cameras) into a staging area, ready to import into your device inventory
  • Networks (VLAN, LAN, and WAN configurations) for self-hosted controllers
Each console is added as its own connection, and you can connect as many consoles as you need. A UniFi connection page has these setup tasks: Connect, Choose data, Import or match companies, Import devices and Review. See Connect and manage integrations for the tasks every connection shares.

Connection models

You can add as many UniFi connections as you need, and mix the models freely.

Global console

One UniFi console that spans all of your clients. You match each site to a company after the first sync.

Per-company console

A console that belongs to a single client. Every site on it is matched to that company.

UniFi Cloud

Connects through Ubiquiti’s Site Manager API using an API key from your ui.com account.

Self-hosted controller

Connects directly to a UniFi OS controller or Cloud Key on your network, using an API key or a username and password.

Prerequisites

Before you begin, make sure you have:
  • Administrative access to your UniFi Cloud account or self-hosted controller
  • MSPortal integration management permissions
  • Companies already created in MSPortal, or permission to create them, so you have something to match sites to

Part 1: Get Your UniFi Credentials

Choose the method that matches how you access UniFi.
1

Sign in to UniFi Site Manager

Go to unifi.ui.com and sign in with the Ubiquiti account that owns the consoles you want to sync.
2

Create an API key

Open the API section and create a new API key. Copy it immediately, it is only shown once.
The cloud API key covers every console and site under that Ubiquiti account, which makes it a good fit for a single global connection. It is read-only, and it does not expose network (VLAN) configurations.
MSPortal needs to reach your controller over the network. A controller that is only reachable on a private LAN, with no port forward, VPN, or reverse proxy, cannot be synced. In that case, use a UniFi Cloud connection instead.

Part 2: Connect a Console in MSPortal

1

Open the connection page

Go to Settings > Integrations, open the Directory tab, find UniFi Console, and click Connect. If you already have a UniFi connection and want to add another console, click Connect another on the UniFi Console row, or Add connection under UniFi Console on the Active tab.
2

Fill in the connection details

3

Test the connection

Click Test connection and resolve any reported error. If you change a field after testing, test again.
4

Save the connection

After a successful test, click Save and continue. MSPortal stores the credentials and starts discovering sites and devices. A successful test on its own does not save anything.
Credentials are stored in the vault and never shown again after saving. When you reopen Connect later, leaving a masked credential unchanged keeps the stored value. Changing the connection mode, controller URL or authentication method clears the stored credentials, so enter the credentials for the new endpoint.

Part 3: Choose Data and Match Sites to Companies

Open Choose data to pick what this console syncs. Devices and Networks each have a switch. Changes save as you make them, and turning a dataset on starts its first sync. Network configurations are only returned by a self-hosted controller using username and password. A UniFi site is the unit that matches to an MSPortal company. Devices and networks inherit the company from their site.
Nothing to match. Every site on a per-company console is matched to the company you chose when connecting.
Saved matches determine which company receives UniFi data. Review sync results separately from the matching result.

Part 4: Import Devices

1

Open Import devices

Open Import devices on the UniFi connection page.
2

Match device types

Under Match device types, match each discovered UniFi device type (access points, switches, gateways, cameras) to an MSPortal device type. Match all suggested accepts the suggestions, and Match the rest with AI suggests types for the rest.
3

Turn on Auto-import (optional)

Turn on Auto-import on a matched device type to import new devices of that type automatically after each sync.
4

Import staged devices

Staged devices lists each discovered device waiting to be imported. Select the devices you want and click Import N selected, or click Import all matched. Devices on a site without a company show Match company first. Imported devices are created in your device inventory with UniFi as the source and Ubiquiti as the manufacturer, and they appear in the Devices module, reports, and compliance alongside devices from your RMM.
5

Finish setup

Open Review and click Finish setup once the required tasks are done. Finishing setup does not mean every sync or device import has completed. Check Import devices and the resulting inventory.
For type matching and import results in more detail, see Import Devices.
Auto-import replaces manual importing. Once a device type has Auto-import turned on, new devices found on matched sites are imported automatically after each sync.

What Gets Synced

Network configurations are only available from a self-hosted controller using username and password. The UniFi Cloud API and the controller API key method do not expose them, so no network data is synced for those connections.
MSPortal only reads from UniFi. It never changes your UniFi configuration, adopts devices, or modifies networks.

Sync Schedule

Each connection shows its own last sync time on the integrations list.

Devices removed in UniFi

Each device sync removes devices that a mapped site no longer lists. When a whole site disappears from UniFi, its devices are removed once the site has been missing for 7 days. If any site could not be read, that sync removes nothing. A site that returned no devices, or only part of its list, keeps its devices until a later sync reads it in full. A device another integration still reports is kept and moves to that integration. Archived devices are never removed.

Managing Connections

Each UniFi connection appears as its own row under UniFi Console on the Active tab of Settings > Integrations. Open a connection to manage it:
  • Connect: enter replacement credentials, click Test connection, then click Save changes. Testing again on its own does not save anything. Scope and company stay fixed; use a separate connection for a different company scope.
  • Run sync: pull the latest sites, devices, and networks from that console
  • Import devices: work with staged devices and device type matches for that console
  • Overview and Sync activity: check connection status, the last runs and any errors
  • Rename: in More actions, give the connection a nickname to tell it apart from other consoles
  • Disconnect…: in More actions, remove the connection
Disconnecting removes the stored credentials, the matches between UniFi sites and your companies, and the data synced from this connection. It cannot be undone, and it does not revoke the API key or account in UniFi.

Troubleshooting

Causes:
  • The controller URL is wrong, or is missing the port (for example :8443)
  • The controller uses a self-signed certificate
  • MSPortal cannot reach the controller from the internet
  • API key authentication was used on a controller older than UniFi OS 9.x
Solutions:
  1. Confirm the URL by opening it in a browser from outside your network
  2. Set Certificate to Allow self-signed certificate
  3. Publish the controller through a VPN, reverse proxy, or port forward, or switch to a UniFi Cloud connection
  4. On older controllers, switch the authentication method to Username & password
The controller URL works, but the controller returned its sign-in page instead of its API. MSPortal tries the API path for UniFi OS consoles and the path for a standalone UniFi Network application, and neither answered.Causes:
  • The URL includes a path after the port, such as /manage or /network
  • The controller, or the hosting provider in front of it, does not offer API keys
  • A proxy in front of the controller sends API requests to its sign-in page
Solutions:
  1. Enter only the address and port, for example https://unifi.example.com:8443
  2. Check that the controller has Settings > Control Plane > Integrations, where API keys are created. If it does not, it cannot use API key authentication.
  3. Switch the authentication method to Username & password with a local administrator account. This works on older self-hosted and hosted controllers, on any port.
Causes:
  • The API key was copied incorrectly, or has been revoked
  • The key belongs to a different Ubiquiti account than the consoles you expect
Solutions:
  1. Generate a new API key at unifi.ui.com and paste it again
  2. Confirm the account that created the key owns the consoles you want to sync
Causes:
  • The first sync has not finished yet
  • The credentials only have access to consoles with no sites
Solutions:
  1. Give the first sync a few minutes, or use Run sync to start a fresh one. Avoid creating extra connections for the same console.
  2. Confirm the account or API key can see the sites in UniFi itself
Devices inherit their company from their site. Open the UniFi connection, match the site in Import or match companies, then sync again.
Network configurations are only returned by a self-hosted controller using Username & password authentication. UniFi Cloud and controller API keys do not expose them. Check also that Networks is turned on in Choose data.
Check the site’s saved company match, the last successful sync in Sync activity, any paused state on the connection, the device type matches, and the import result in Import devices.

Frequently asked questions

No. For a new connection, complete a successful test and then click Save and continue. For an existing connection, click Save changes after testing new credentials.
No. Suggestions wait for your review. Accepting a suggestion saves its match immediately, and removing a saved match also takes effect immediately.
No. Device discovery, saved matches and inventory imports have separate results. Check Import devices and the resulting inventory.

Best Practices

Name every connection

With several consoles in play, a connection name like “Acme HQ Cloud Key” is far easier to work with than a scope label.

Match sites before importing

Devices on unmatched sites have no company and cannot be imported. Finish Import or match companies first.

Use per-company connections where you can

Every site is matched to the company automatically, which removes the matching step entirely.

Turn on Auto-import for network gear

Access points and switches rarely need review before import, so Auto-import on those device types keeps the inventory current with no manual work.

Need Help?

For assistance with the UniFi integration, contact support@msportal.ai.