For the complete documentation index, see llms.txt. This page is also available as Markdown.

UniFi Integration Setup

Getting Started

Use this guide to connect UniFi to your BalkanID tenant. You will need credentials from your UniFi Portal and access to the Integrations section in BalkanID.

BalkanID connects to the UniFi Access application running on your own UniFi Console. It reads users, user groups, access policies, doors and door groups, and the credentials assigned to each user, so that physical access can be reviewed alongside the rest of your application access.

UniFi Access 1.9.1 or later is required. Group-based features require UniFi Access 2.2.6 or later.

The UniFi Access API is not available after upgrading to UniFi Identity Enterprise. If your console has been upgraded, BalkanID cannot extract data from it.

Requirements:

Before you begin, collect the following values from UniFi:

  • Host

  • API Token

Configure UniFi within your BalkanID tenant

  1. To find the Host and API Token, sign in to your UniFi Portal at https://account.ui.com/login.

  2. Select the UniFi Console where the UniFi Access application is installed.

  3. Go to Access > Settings > General > Advanced, then open API Token.

  4. Click Create New, enter a key name and a validity period, select the permission scopes listed under Integration Scopes below, then click Create.

  5. Copy your API Token and store it safely. The token is displayed only once, so it cannot be retrieved later.

  6. Your Host is the IP address or domain name of the UniFi Access application server. BalkanID connects to it over HTTPS on port 12445, so make sure that port is reachable from BalkanID.

  7. In BalkanID, go to Integrations and click Add integration.

The BalkanID Integrations page, with the Add integration button in the top right of the toolbar.
Integrations
  1. Search for UniFi, select it, then click Next.

The Connect a new application step with UniFi searched for and selected, showing a check mark on the UniFi card.
Connect a new application
  1. Paste your Host and API Token into the corresponding fields, then click Next.

The Direct Configuration extraction type selected, showing the Host and API Token fields.
Direct Configuration
  1. Fill Optional Configuration, if required.

The Optional Configuration step, showing Reviewer Settings on the left and Select Fulfillment options on the right.
Optional Configuration
  1. Once you have filled in the information, click Save. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the Integrations page. When data is available, the integration Status column will read Connected and the integration Message will read Data available.

Integration Scopes

Select all four permission scopes below when you create the API Token. BalkanID only reads from UniFi Access and never modifies access.

Read Only Scopes
Lifecycle Management Scopes

view:user — users and user groups, including group membership view:policy — access policies, and which users and groups they are granted to view:space — doors and door groups, and the doors each policy covers view:credential — NFC cards, PIN codes and touch passes assigned to each user

N/A

BalkanID records only the identifier and status of each credential. NFC card tokens and PIN values are never read or stored. License plates and visitor records are not extracted.

Last updated

Was this helpful?