mirror of
https://github.com/netbirdio/terraform-provider-netbird.git
synced 2026-05-22 17:13:16 -07:00
1.5 KiB
1.5 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| netbird_user Data Source - netbird | Read Existing Users metadata, see NetBird Docs https://docs.netbird.io/how-to/add-users-to-your-network for more information. |
netbird_user (Data Source)
Read Existing Users metadata, see NetBird Docs for more information.
Example Usage
# Retrieve by ID
data "netbird_user" "example" {
id = "926c2f89-ebc9-4a1b-9cf9-f53a20d06f6c"
}
# Retrieve by Name
data "netbird_user" "example" {
name = "John Doe"
}
# Retrieve by Email
data "netbird_user" "example" {
email = "johndoe@company.co"
}
Schema
Optional
email(String) User Emailid(String) The unique identifier of a username(String) User Name
Read-Only
auto_groups(List of String) Group IDs to auto-assign to peers registered by this useris_blocked(Boolean) If set to true then user is blocked and can't use the systemis_current(Boolean) Set to true if the caller user is the same as the resource useris_service_user(Boolean) If set to true, user is a Service Account Userissued(String) User issue methodlast_login(String) User Last Login timedaterole(String) User's NetBird account role (owner|admin|user|billing_admin|auditor|network_admin).status(String) User status (active or invited)