//Retrieve by Name
data "nutanix_user" "userbyname" {
name = nutanix_user.user.name
}
is false, error :
╷
│ Error: Unsupported argument
│
│ on main.tf line 35, in data "nutanix_user" "account_name":
│ 35: name = "account_name"
│
│ An argument named "name" is not expected here.
but with the argument user_name it work
//Retrieve by Name
data "nutanix_user" "userbyname" {
user_name = nutanix_user.user.name
}
On the page https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/data-sources/user
is false, error :
but with the argument
user_name
it work