Hi, I've just had a look internally and there is some discussion about making this functionality available but I can't give you a definitive idea of when this might be.
In terms of workarounds the best one I can find is to use Tarracurl to make raw API calls to the IAMV2 APis. Code snippet below:
data "http" "resolve_group" {
url = "https://accounts.azuredatabricks.net/api/2.0/identity/accounts/${var.databricks_account_id}/groups/resolveByExternalId"
method = "POST"
request_headers = {
Authorization = "Bearer ${var.databricks_token}"
Content-Type = "application/json"
}
request_body = jsonencode({
external_id = var.group_external_id
# include other fields if your IdP / endpoint requires them
})
}
locals {
resolved_group = jsondecode(data.http.resolve_group.response_body)
# adjust to actual response schema:
resolved_group_id = try(local.resolved_group.group.id, null)
}
You would need to get the individual Entra IDs of the subgroups, though, but I'd imagine you could use an Entra ID TF provider to do this and then pass these into the code above.
I hope this helps.
Thanks,
Emma