Retrieves information about a specific Vultr user including their name, email, access control list, and API status
Get information about a Vultr user associated with your account. This data source provides the name, email, access control list, and API status for a Vultr user associated with your account.
Get the information for a user by email:
data "vultr_user" "my_user" {
filter {
name = "email"
values = ["jdoe@example.com"]
}
}
Get the information for a user by name:
data "vultr_user" "my_user" {
filter {
name = "name"
values = ["John Doe"]
}
}
The following arguments are supported:
filter - (Required) Query parameters for finding users.The filter block supports the following:
name - Attribute name to filter with.values - One or more values filter with.The following attributes are exported:
name - The name of the user.email - The email of the user.api_enabled - Whether API is enabled for the user.acl - The access control list for the user.