The unifi.iam.User resource manages network clients in the UniFi controller, which are identified by their unique MAC addresses.
This resource allows you to manage:
- Fixed IP assignments
- User groups and network access
- Network blocking and restrictions
- Local DNS records
Important Notes:
- Users are automatically created in the controller when devices connect to the network
- By default, this resource can take over management of existing users (controlled by
allow_existing) - Users can be ‘forgotten’ on destroy (controlled by
skip_forget_on_destroy)
This resource is particularly useful for:
- Managing static IP assignments
- Implementing access control
- Setting up local DNS records
- Organizing devices into user groups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as unifi from "@pulumiverse/unifi";
const test = new unifi.iam.User("test", {
mac: "01:23:45:67:89:AB",
name: "some client",
note: "my note",
fixedIp: "10.0.0.50",
networkId: myVlan.id,
});
import pulumi
import pulumiverse_unifi as unifi
test = unifi.iam.User("test",
mac="01:23:45:67:89:AB",
name="some client",
note="my note",
fixed_ip="10.0.0.50",
network_id=my_vlan["id"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi/iam"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iam.NewUser(ctx, "test", &iam.UserArgs{
Mac: pulumi.String("01:23:45:67:89:AB"),
Name: pulumi.String("some client"),
Note: pulumi.String("my note"),
FixedIp: pulumi.String("10.0.0.50"),
NetworkId: pulumi.Any(myVlan.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Unifi = Pulumiverse.Unifi;
return await Deployment.RunAsync(() =>
{
var test = new Unifi.IAM.User("test", new()
{
Mac = "01:23:45:67:89:AB",
Name = "some client",
Note = "my note",
FixedIp = "10.0.0.50",
NetworkId = myVlan.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumiverse.unifi.iam.User;
import com.pulumiverse.unifi.iam.UserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new User("test", UserArgs.builder()
.mac("01:23:45:67:89:AB")
.name("some client")
.note("my note")
.fixedIp("10.0.0.50")
.networkId(myVlan.id())
.build());
}
}
resources:
test:
type: unifi:iam:User
properties:
mac: 01:23:45:67:89:AB
name: some client
note: my note
fixedIp: 10.0.0.50
networkId: ${myVlan.id}
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
mac: Optional[str] = None,
allow_existing: Optional[bool] = None,
blocked: Optional[bool] = None,
dev_id_override: Optional[int] = None,
fixed_ip: Optional[str] = None,
local_dns_record: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
note: Optional[str] = None,
site: Optional[str] = None,
skip_forget_on_destroy: Optional[bool] = None,
user_group_id: Optional[str] = None)func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)public User(string name, UserArgs args, CustomResourceOptions? opts = null)type: unifi:iam:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var userResource = new Unifi.IAM.User("userResource", new()
{
Mac = "string",
AllowExisting = false,
Blocked = false,
DevIdOverride = 0,
FixedIp = "string",
LocalDnsRecord = "string",
Name = "string",
NetworkId = "string",
Note = "string",
Site = "string",
SkipForgetOnDestroy = false,
UserGroupId = "string",
});
example, err := iam.NewUser(ctx, "userResource", &iam.UserArgs{
Mac: pulumi.String("string"),
AllowExisting: pulumi.Bool(false),
Blocked: pulumi.Bool(false),
DevIdOverride: pulumi.Int(0),
FixedIp: pulumi.String("string"),
LocalDnsRecord: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkId: pulumi.String("string"),
Note: pulumi.String("string"),
Site: pulumi.String("string"),
SkipForgetOnDestroy: pulumi.Bool(false),
UserGroupId: pulumi.String("string"),
})
var userResource = new User("userResource", UserArgs.builder()
.mac("string")
.allowExisting(false)
.blocked(false)
.devIdOverride(0)
.fixedIp("string")
.localDnsRecord("string")
.name("string")
.networkId("string")
.note("string")
.site("string")
.skipForgetOnDestroy(false)
.userGroupId("string")
.build());
user_resource = unifi.iam.User("userResource",
mac="string",
allow_existing=False,
blocked=False,
dev_id_override=0,
fixed_ip="string",
local_dns_record="string",
name="string",
network_id="string",
note="string",
site="string",
skip_forget_on_destroy=False,
user_group_id="string")
const userResource = new unifi.iam.User("userResource", {
mac: "string",
allowExisting: false,
blocked: false,
devIdOverride: 0,
fixedIp: "string",
localDnsRecord: "string",
name: "string",
networkId: "string",
note: "string",
site: "string",
skipForgetOnDestroy: false,
userGroupId: "string",
});
type: unifi:iam:User
properties:
allowExisting: false
blocked: false
devIdOverride: 0
fixedIp: string
localDnsRecord: string
mac: string
name: string
networkId: string
note: string
site: string
skipForgetOnDestroy: false
userGroupId: string
User Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The User resource accepts the following input properties:
- Mac string
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- Allow
Existing bool Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- Blocked bool
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- Dev
Id intOverride - Override the device fingerprint.
- Fixed
Ip string - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- Local
Dns stringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- Name string
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- Network
Id string - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- Note string
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- Site string
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- Skip
Forget boolOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- User
Group stringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- Mac string
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- Allow
Existing bool Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- Blocked bool
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- Dev
Id intOverride - Override the device fingerprint.
- Fixed
Ip string - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- Local
Dns stringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- Name string
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- Network
Id string - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- Note string
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- Site string
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- Skip
Forget boolOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- User
Group stringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- mac String
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- allow
Existing Boolean Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- blocked Boolean
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- dev
Id IntegerOverride - Override the device fingerprint.
- fixed
Ip String - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- local
Dns StringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- name String
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- network
Id String - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- note String
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- site String
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- skip
Forget BooleanOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- user
Group StringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- mac string
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- allow
Existing boolean Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- blocked boolean
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- dev
Id numberOverride - Override the device fingerprint.
- fixed
Ip string - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- local
Dns stringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- name string
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- network
Id string - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- note string
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- site string
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- skip
Forget booleanOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- user
Group stringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- mac str
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- allow_
existing bool Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- blocked bool
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- dev_
id_ intoverride - Override the device fingerprint.
- fixed_
ip str - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- local_
dns_ strrecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- name str
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- network_
id str - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- note str
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- site str
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- skip_
forget_ boolon_ destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- user_
group_ strid - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- mac String
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- allow
Existing Boolean Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- blocked Boolean
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- dev
Id NumberOverride - Override the device fingerprint.
- fixed
Ip String - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- local
Dns StringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- name String
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- network
Id String - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- note String
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- site String
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- skip
Forget BooleanOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- user
Group StringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
Look up Existing User Resource
Get an existing User resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UserState, opts?: CustomResourceOptions): User@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_existing: Optional[bool] = None,
blocked: Optional[bool] = None,
dev_id_override: Optional[int] = None,
fixed_ip: Optional[str] = None,
hostname: Optional[str] = None,
ip: Optional[str] = None,
local_dns_record: Optional[str] = None,
mac: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
note: Optional[str] = None,
site: Optional[str] = None,
skip_forget_on_destroy: Optional[bool] = None,
user_group_id: Optional[str] = None) -> Userfunc GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)resources: _: type: unifi:iam:User get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allow
Existing bool Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- Blocked bool
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- Dev
Id intOverride - Override the device fingerprint.
- Fixed
Ip string - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- Hostname string
- The hostname of the user.
- Ip string
- The IP address of the user.
- Local
Dns stringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- Mac string
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- Name string
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- Network
Id string - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- Note string
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- Site string
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- Skip
Forget boolOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- User
Group stringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- Allow
Existing bool Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- Blocked bool
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- Dev
Id intOverride - Override the device fingerprint.
- Fixed
Ip string - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- Hostname string
- The hostname of the user.
- Ip string
- The IP address of the user.
- Local
Dns stringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- Mac string
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- Name string
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- Network
Id string - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- Note string
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- Site string
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- Skip
Forget boolOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- User
Group stringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- allow
Existing Boolean Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- blocked Boolean
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- dev
Id IntegerOverride - Override the device fingerprint.
- fixed
Ip String - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- hostname String
- The hostname of the user.
- ip String
- The IP address of the user.
- local
Dns StringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- mac String
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- name String
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- network
Id String - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- note String
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- site String
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- skip
Forget BooleanOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- user
Group StringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- allow
Existing boolean Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- blocked boolean
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- dev
Id numberOverride - Override the device fingerprint.
- fixed
Ip string - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- hostname string
- The hostname of the user.
- ip string
- The IP address of the user.
- local
Dns stringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- mac string
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- name string
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- network
Id string - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- note string
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- site string
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- skip
Forget booleanOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- user
Group stringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- allow_
existing bool Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- blocked bool
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- dev_
id_ intoverride - Override the device fingerprint.
- fixed_
ip str - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- hostname str
- The hostname of the user.
- ip str
- The IP address of the user.
- local_
dns_ strrecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- mac str
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- name str
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- network_
id str - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- note str
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- site str
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- skip_
forget_ boolon_ destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- user_
group_ strid - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
- allow
Existing Boolean Allow this resource to take over management of an existing user in the UniFi controller. When true:
- The resource can manage users that were automatically created when devices connected
- Existing settings will be overwritten with the values specified in this resource
- If false, attempting to manage an existing user will result in an error
Use with caution as it can modify settings for devices already connected to your network.
- blocked Boolean
- When true, this client will be blocked from accessing the network. Useful for temporarily or permanently restricting network access for specific devices.
- dev
Id NumberOverride - Override the device fingerprint.
- fixed
Ip String - A static IPv4 address to assign to this client. Ensure this IP is within the client's network range and not already assigned to another device.
- hostname String
- The hostname of the user.
- ip String
- The IP address of the user.
- local
Dns StringRecord - A local DNS hostname for this client. When set, other devices on the network can resolve this name to the client's IP address (e.g., 'printer.local', 'nas.home.arpa'). Such DNS record is automatically added to controller's DNS records.
- mac String
- The MAC address of the device/client. This is used as the unique identifier and cannot be changed after creation. Must be a valid MAC address format (e.g., '00:11:22:33:44:55'). MAC addresses are case-insensitive.
- name String
- A friendly name for the device/client. This helps identify the device in the UniFi interface (eg. 'Living Room TV', 'John's Laptop').
- network
Id String - The ID of the network this client should be associated with. This is particularly important when using VLANs or multiple networks.
- note String
- Additional information about the client that you want to record (e.g., 'Company asset tag #12345', 'Guest device - expires 2024-03-01').
- site String
- The name of the UniFi site where this user should be managed. If not specified, the default site will be used.
- skip
Forget BooleanOn Destroy - When false (default), the client will be 'forgotten' by the controller when this resource is destroyed. Set to true to keep the client's history in the controller after the resource is removed from Terraform.
- user
Group StringId - The ID of the user group this client belongs to. User groups can be used to apply common settings and restrictions to multiple clients.
Package Details
- Repository
- unifi pulumiverse/pulumi-unifi
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
unifiTerraform Provider.
