Unifi icon

Unifi

Interact with Unifi API

Site → Create RADIUS User

AI-generated

Summary

Create a new RADIUS user within a specified Unifi site by providing a username, password, and optional network parameters such as VLAN and tunnel types.

Inputs

  • siteId (required) — Identifier of the Unifi site, obtained from the "name" field returned by the "Get Sites" operation.
  • name (required) — Username to assign to the new RADIUS user.
  • password (required) — Password for the new RADIUS user.
  • vlan — Optional VLAN assignment for the user.
  • tunnelType — Numeric code for the tunnel type, defaults to 3 if not specified.
  • tunnelMediumType — Numeric code for the tunnel medium type, defaults to 1 if not specified.

Output shape

a single JSON object representing the created RADIUS user or the API response confirming creation

The operation returns the API response for the newly created RADIUS user. Validation or error messages will be included in the output if the creation fails.

Discussion