Prerequisites
- A UI account that owns or administers your clients’ UniFi consoles. For an organization, use an organization API key.
- Each console running firmware 5.0.3 or later, so Rallied’s cloud connection can reach its Network application. Rallied never connects to a console on its local network.
How to connect
1
Create a Site Manager API key
Sign in to UniFi Site Manager with the UI account that owns or administers your clients’ consoles. Open API in the left menu and create a Site Manager API key.
2
Connect UniFi
In Rallied, go to Settings → Integrations, find the Ubiquiti UniFi card and click Connect. Paste the key into Site Manager API key and click Connect.
UniFi API keys have no scopes of their own. The key carries the permissions of the account that created it. That account must be an admin of every console where the agent should restart devices or change settings. A view-only account gives the agent reads only.
Mapping sites to clients
When you connect, Rallied syncs every site the key’s account can see, one per console site. Until a site is matched to a client, the agent can’t read or change any client’s network. Click Match companies at the top of the integration’s detail page and pick each site’s client. The Companies tab lists the sites with their site key. Click Sync sites there to pick up sites you’ve added since. A client has one UniFi site. If a client has a second site, it stays unmatched. On a client’s ticket, the agent reads and changes only that client’s site. It fills in the site key automatically, and refuses a device, WiFi network or guest that isn’t on that site. In the MSP admin Chat, the agent can also list every site with its health counts. To restart a device or change a setting from the chat, name the client: UniFi actions run only for a named client. End users can’t run any UniFi tool.How the agent uses it
A typical “the WiFi is down in the office” ticket goes like this. The agent:- Reads the site’s health: offline devices, WAN uptime, current internet issues, and whether the console answers through the cloud.
- Finds the offline access point and reads its state, uplink and ports.
- Follows the chain to the switch above it and checks that port’s PoE state.
- Proposes the smallest fix, such as power-cycling that PoE port, and waits for a technician’s approval.
- After approval, runs it, waits, then reads the device again before saying it’s fixed.
Restarting devices
- Power-cycling a PoE port reboots whatever is plugged into it, such as a camera, phone or access point. The port must be PoE with PoE turned on.
- Restarting an access point or switch drops everything connected through it for about a minute.
- The agent never restarts the gateway (console), because that takes the whole site offline. Its PoE ports can still be power-cycled.
Changing WiFi and guest access
Each change touches one WiFi network, device or guest, and one setting. The agent reads the current settings, changes that one setting and reads it back. The approval names the WiFi network or device and says what drops.- Turn a WiFi network on or off. Turning it off disconnects everyone on it.
- Change a WiFi passphrase. Only on WPA2 or WPA3 Personal networks. Open and Enterprise (RADIUS) networks are refused. Rallied generates the passphrase, and the agent never sees it. You read it on the card in the admin chat, or the agent delivers it securely. Every device on the network must join again. When an unverified requester asks for this on a ticket, it waits for a technician. See Identity verification.
- Block or unblock a device on one WiFi network, by MAC address. The network must use a block list. A network that uses an allow list is refused. Blocking is per network, so keeping a device off two networks takes two steps.
- Let a guest device on for up to 7 days, with optional data and speed limits. There’s no unlimited option. The agent can also end a guest’s access.
- Create guest vouchers: up to 50 at a time, each valid for up to 30 days from first use. The agent never sees the codes. It hands them over with a secure delivery or puts them in an internal note for the technician.
Limits
- The agent doesn’t change the gateway or the site’s default network. Make those changes in the UniFi console.
- UniFi doesn’t tell the agent which switch port a computer is plugged into or its WiFi signal strength. The agent sees only the device the computer connects through.
- Turning a network (VLAN) on or off is off by default. To let the agent request it, set
unifi-set-network-enabledto Approval needed on the Policies tab.