Skip to content
New issue

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data azuread_group -> More than one group found matching specified filter (displayName eq '<DisplayName>' and securityEnabled eq true) #832

Closed
BrianRichardson opened this issue Jun 28, 2022 · 3 comments · Fixed by #841

Comments

@BrianRichardson
Copy link

BrianRichardson commented Jun 28, 2022

I am attempting to retrieve data for one of two Azure AD groups:

data "azuread_group" "group" {
display_name = "<DisplayName>"
security_enabled = true
mail_enabled = false
}

Two AD groups exist with the same name where the difference being one is of type "Security" and the other of type "Mail enabled security".

image

"terraform plan" command results:
More than one group found matching specified filter (displayName eq '' and securityEnabled eq true)

Instead I expect the group without mail enabled to be retrieved. Is my expectation incorrect?
Related functionality

Terraform v1.2.3
on windows_amd64

  • provider registry.terraform.io/hashicorp/azuread v2.25.0
  • provider registry.terraform.io/hashicorp/azurerm v3.11.0
@manicminer
Copy link
Contributor

Hi @BrianRichardson, thanks for reporting this. I can confirm this is a bug, as we should be excluding group types when they are explicitly set to false in configuration. I've opened a PR to address this, and this will be fixed in this week's release. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 5, 2022

This functionality has been released in v2.27.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Sep 4, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants