We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add equivalent for az ad group owner add as azuread_group_owner.
az ad group owner add
I think we need way how to modify owners not just members of groups. API exists and used by AZ CLI.
resource "azuread_group_owner" "example" { group_object_id = azuread_group.example.id owner_object_id = data.azuread_user.example.id }
or
resource "azuread_group_member" "example" { group_object_id = azuread_group.example.id owner_object_id = data.azuread_user.example.id }
The text was updated successfully, but these errors were encountered:
A workaround for the time being:
resource "terraform_data" "owner" { triggers_replace = [ data.azuread_group.the_group.id, data.azuread_service_principal.the_user.id ] input = { group_id = data.azuread_group.the_group.id owner_id = data.azuread_service_principal.the_user.id } provisioner "local-exec" { command = "az ad group owner add --group ${self.input.group_id} --owner-object-id ${self.input.owner_id}" } provisioner "local-exec" { when = destroy command = "az ad group owner remove --group ${self.input.group_id} --owner-object-id ${self.input.owner_id}" } }
Sorry, something went wrong.
No branches or pull requests
Community Note
Description
Add equivalent for
az ad group owner add
as azuread_group_owner.I think we need way how to modify owners not just members of groups. API exists and used by AZ CLI.
New or Affected Resource(s)
Potential Terraform Configuration
or
References
The text was updated successfully, but these errors were encountered: