Overview
UniFi is treated as an RMM-style device source. Once connected, MSPortal syncs:- Sites from the UniFi console, which you map 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
The UniFi integration is in early access and is hidden until it is enabled for your tenant. If you do not see the UniFi card under Settings > Integrations, contact support@msportal.ai to have it turned on.
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. Sites are mapped to companies manually after the first sync.
Per-company console
A console that belongs to a single client. Every site it discovers is automatically linked 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:- The UniFi integration enabled for your tenant (see the note above)
- Administrative access to your UniFi Cloud account or self-hosted controller
- MSPortal integration management permissions
- Companies already created in MSPortal, so you have something to map sites to
Part 1: Get Your UniFi Credentials
Choose the method that matches how you access UniFi.- UniFi Cloud
- Controller API key
- Controller username and password
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.
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.
Part 2: Add a Connection in MSPortal
Open the UniFi management page
Go to Settings > Integrations, find the UniFi card, and open it. The management page has four tabs: Connections, Sites, Networks, and Devices.
Fill in the connection details
| Field | Description |
|---|---|
| Connection name | An optional label, for example “Main office console”. Use this when you have several connections, so they are easy to tell apart in lists and filters. |
| Scope | Global (all companies) for a console that serves multiple clients, or Per company for a console that belongs to one client. |
| Company | Shown when scope is Per company. The client this console belongs to. |
| Connection mode | UniFi Cloud or Self-hosted controller. |
| Controller URL | Shown for self-hosted controllers, for example https://192.168.1.1:8443. |
| Authentication method | API key or Username & password. UniFi Cloud always uses an API key. |
| API key / Username and Password | The credentials you created in Part 1. |
| Allow self-signed certificate | Turn this on for controllers using a self-signed TLS certificate, which is common on self-hosted UniFi. |
| Sync devices | Whether devices are pulled from this console. |
| Sync networks | Whether network configurations are pulled from this console. |
| Auto-import devices | Automatically import discovered devices for mapped companies, instead of importing them by hand. |
Test the connection
Click Test connection. A “Connected to UniFi successfully” message confirms MSPortal can reach the console and authenticate.
Credentials are encrypted in secure vault storage. They are never shown again after saving, and never appear in logs. Editing a connection keeps the existing credentials unless you enter new ones.
Part 3: Map Sites to Companies
A UniFi site is the unit that maps to an MSPortal company. Devices and networks inherit the company from their site.- Per-company connection
- Global connection
Nothing to do. Every site discovered by a per-company connection is linked to that company automatically at sync time.
Part 4: Import Devices
Open the Devices tab
Select the Devices tab and pick the console you want from the Connection dropdown.
Review staged devices
The table shows each discovered device with its name, model, type, MAC address, IP address, firmware, status, site, company, and whether it has been imported.
Filter by import status
Use the Import status filter to show Not imported, Imported, or All devices.
What Gets Synced
| Data Type | Sync Direction | Notes |
|---|---|---|
| Consoles and sites | UniFi -> MSPortal | Sites are the company-mappable unit |
| Devices | UniFi -> MSPortal | Name, model, type, MAC, IP address, firmware, status |
| Networks | UniFi -> MSPortal | VLAN, subnet, purpose, and enabled state |
| Device import | MSPortal only | Staged devices become records in your device inventory |
Sync Schedule
| Sync Type | Schedule |
|---|---|
| Automatic sync | Every 2 hours |
| Manual sync | On demand, using Sync now on a connection |
| Auto-import | Immediately after a sync, when enabled on the connection |
Managing Connections
From the Connections tab you can:- Sync now: pull the latest sites, devices, and networks from that console
- Import devices: stage and import devices for that console
- Edit: change the connection name, credentials, sync toggles, or auto-import setting
- Delete: remove the connection, its stored credentials, and the UniFi data synced for that scope
Troubleshooting
I do not see the UniFi card under Settings > Integrations
I do not see the UniFi card under Settings > Integrations
The integration is in early access and is enabled per tenant. Contact support@msportal.ai to have it turned on for your account.
Test connection fails on a self-hosted controller
Test connection fails on a self-hosted controller
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
- Confirm the URL by opening it in a browser from outside your network
- Turn on Allow self-signed certificate
- Publish the controller through a VPN, reverse proxy, or port forward, or switch to a UniFi Cloud connection
- On older controllers, switch the authentication method to Username & password
Test connection fails on UniFi Cloud
Test connection fails on UniFi Cloud
Causes:
- The API key was copied incorrectly, or has been revoked
- The key belongs to a different Ubiquiti account than the consoles you expect
- Generate a new API key at unifi.ui.com and paste it again
- Confirm the account that created the key owns the consoles you want to sync
No sites appear after connecting
No sites appear after connecting
Causes:
- The first sync has not finished yet
- The credentials only have access to consoles with no sites
- Click Sync now on the connection and give it a few minutes
- Confirm the account or API key can see the sites in UniFi itself
Devices are stuck as Unmapped and cannot be imported
Devices are stuck as Unmapped and cannot be imported
Devices inherit their company from their site. Open the Sites tab and map the site to a company, then sync again.
The Networks tab is empty
The Networks tab is empty
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 Sync networks is enabled on the connection.
Sync toggles look like they reset after editing a connection
Sync toggles look like they reset after editing a connection
Editing a connection reloads its saved settings, including the self-signed certificate option, the sync toggles, and auto-import. If a setting looks wrong after an edit, set it again and save, then confirm it persists after reopening the dialog.
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.
Map sites before importing
Devices on unmapped sites have no company and cannot be imported. Clear the Sites tab first.
Use per-company connections where you can
Sites link to the company automatically, which removes the mapping step entirely.
Turn on auto-import for network gear
Access points and switches rarely need review before import, so auto-import keeps the inventory current with no manual work.
Related Resources
- Import Devices - General device import guide
- Devices Module - Managing devices in MSPortal
- Integration Company Mapping - Mapping integration companies and sites
- Sync Schedules - When each integration syncs