Retrieves information about databricks_user.
Adding user to administrative group
data "databricks_group" "admins" {
display_name = "admins"
}
data "databricks_user" "me" {
user_name = "me@example.com"
}
resource "databricks_group_member" "my_member_a" {
group_id = data.databricks_group.admins.id
member_id = data.databricks_user.me.id
}
Data source allows you to pick groups by the following attributes
user_name
- (Optional) User name of the user. The user must exist before this resource can be planned.user_id
- (Optional) ID of the user.Data source exposes the following attributes:
id
- The id of the user.external_id
- ID of the user in an external identity provider.user_name
- Name of the user, e.g. mr.foo@example.com
.display_name
- Display name of the user, e.g. Mr Foo
.home
- Home folder of the user, e.g. /Users/mr.foo@example.com
.repos
- Personal Repos location of the user, e.g. /Repos/mr.foo@example.com
.alphanumeric
- Alphanumeric representation of user local name. e.g. mr_foo
.
acl_principal_id
- identifier for use in databricks_access_control_rule_set, e.g. users/mr.foo@example.com
.
The following resources are used in the same context: