-
Notifications
You must be signed in to change notification settings - Fork 456
Open
Labels
featureNew feature or requestNew feature or requestgood first issuethis is something simple that can help started with provider developmentthis is something simple that can help started with provider development
Description
Use-cases
I want to be able to get all users provisioned to my Databricks account (or, depending on provider configuration, workspace). My use case is adding them to a certain 'default' catalog (or group), and create a schema for every user that they can use as 'personal space'.
Attempted Solutions
- I can use AzureAD provider to query the SCIM app, and go from there, but this is not clean (nor cloud-agnostic).
- I can also use data block databricks_group to fetch the built-in group
account users
(orusers
in a workspace context).
Proposal
A data block that uses the account-level List users endpoint. Should be have similar as existing databricks_service_principals.
data "databricks_users" "users" {
display_name_contains = "@domain.org"
}
- display_name_contains - (Optional) Only return display name that match the given name string
I see it returning 2 possible outputs:
- either a map of user_id => display_name mapping, that can then be used in
databricks_user
data block to fetch further details (like how it is done for databricks_service_principals, or - a list of
users
, with some basic attributes likeid
,external_id
,user_name
,display_name
,.. (similar to azuread_users)
References
Serpinex3
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestgood first issuethis is something simple that can help started with provider developmentthis is something simple that can help started with provider development