Files
terraform-provider-unifi/docs/data-sources/user.md
Mateusz Filipowicz 325d7b7f20 feat: initialize Terraform Plugin Framework (#23)
* feat: initialize Terraform Plugin Framework

* fix docker-compose path for tests

* fix: ensure documentation can be generated with old provider SDK and new plugin framework

* lint
2025-02-24 00:11:41 +01:00

1.3 KiB

page_title, subcategory, description
page_title subcategory description
unifi_user Data Source - terraform-provider-unifi unifi_user retrieves properties of a user (or "client" in the UI) of the network by MAC address.

unifi_user (Data Source)

unifi_user retrieves properties of a user (or "client" in the UI) of the network by MAC address.

Example Usage

data "unifi_user" "client" {
  mac = "01:23:45:67:89:ab"
}

Schema

Required

  • mac (String) The MAC address of the user.

Optional

  • site (String) The name of the site the user is associated with.

Read-Only

  • blocked (Boolean) Specifies whether this user should be blocked from the network.
  • dev_id_override (Number) Override the device fingerprint.
  • fixed_ip (String) fixed IPv4 address set for this user.
  • hostname (String) The hostname of the user.
  • id (String) The ID of the user.
  • ip (String) The IP address of the user.
  • local_dns_record (String) The local DNS record for this user.
  • name (String) The name of the user.
  • network_id (String) The network ID for this user.
  • note (String) A note with additional information for the user.
  • user_group_id (String) The user group ID for the user.