Open Neutrino-Sunset opened 8 months ago
This is wrong.
My testing suggests that if the authenticated Service Principal is the owner of the Group being managed then the permissions required to create a new group are actually Group.Read.All
and Group.Create
.
Those same permissions are also sufficient to destroy the created group.
If you believe this is wrong, creating a PR with the updated docs is probably more appreciated than just an issue.
@Neutrino-Sunset Thanks for reporting. Just as a disclaimer, we provide the permissions references as a best effort convenience, but these are outside of our control and not automatically updated whenever the API behavior changes in a breaking way as it appears to have done in your case.
After testing, I can confirm that either Directory.Read.All
or Group.Read.All
roles are required in addition to Group.Create
.
Community Note
Terraform (and AzureAD Provider) Version
Terraform v1.7.4 on windows_amd64
Affected Resource(s)
azuread_group
Terraform Configuration Files
Service Principal has the specified permissions.
Debug Output
Expected Behavior
Should have created the group.
Actual Behavior
Failed to create the group and reported an error.
Steps to Reproduce
terraform apply