-
Notifications
You must be signed in to change notification settings - Fork 301
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
Create an Azure AD Group in an Administrative Unit #906
Comments
The current Hamilton Version does not have an Administrative unit field in the Group object. This requires SDK changes. |
I've just spent a couple of hours looking for this very feature. So I would like this a lot. One problem is that the |
Thanks for opening this issue, however I believe support for this is already present in the provider using the azuread_administrative_unit_member resource which was added in v2.11.0. |
Hello @manicminer The azuread_administrative_unit_member requires an existing group (member_object_id reference), which must be created before, and can currently only be created outside the Administrative Unit. Which is exactly the problem, as permissions to create groups inside the Administrative Unit don't mean you can create groups outside that Administrative Unit. Please check again. Thanks, |
Hi @mb-northwave, thanks for the clarification. That makes sense, and should be possible for us to add 👍 |
Hi, any update or eta. when this resource will be available? I'm working in a large enterprise project and am trying to terraform several groups where I could really benefit from having this feature. Otherwise I would need to create the group manually and then import it into the terraform state as an azuread_group resource :( |
This seems to be the only way to properly create groups in a multi-tenancy context. Looking forward to this feature as well ! |
As far as I can see, assigning an existing group to an administrative unit requires "Privileged Role Administrator", which is a way too broad permission, as this role can distribute "Global Administrator" permissions as well. |
In Azure Portal it is possible to create a group in an administrative unit directly. This requires group administrator role in the administrative unit only. |
Indeed. That is why Administrative Units are so elegant.
And this issue is about exposing that functionality also in Terraform, as Terraform does not support that currently.
So I’d really appreciate this being supported, as we are eagerly awaiting this feature.
|
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. |
Community Note
Description
The azuread provider can add an existing azure ad group created at the root of the directory. This issue is to raise a feature request to align with the portal that has now the option to create an Azure AD Group directly into the an Administrative Unit (AU).
Data source should also include the administrative unit when it is created only in an AU
New or Affected Resource(s)
Potential Terraform Configuration
References
https://learn.microsoft.com/en-us/graph/api/administrativeunit-post-members?view=graph-rest-1.0&tabs=http#example-2-create-a-new-group
The text was updated successfully, but these errors were encountered: