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

azuread_group - Allow creation of group in administrative unit #984

Merged
merged 28 commits into from
Feb 21, 2023
Merged

azuread_group - Allow creation of group in administrative unit #984

merged 28 commits into from
Feb 21, 2023

Conversation

ccadruvi
Copy link
Contributor

@ccadruvi ccadruvi commented Jan 23, 2023

Allows the creation of a group in an administrative unit directly. This allows to have less permissions, e.g. Groups Administrator on an administrative unit scope instead of tenant scope.

Fixes #906

Depends on this PR in hamilton: manicminer/hamilton#206
Edit: now also depends on manicminer/hamilton#220

Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution @ccadruvi! This is looking promising, however we will need to be very clear about how this will conflict with the azuread_administrative_unit_member resource and the members property of the administrative_unit resource. I've made some suggestions below, if you can look at these and rebase to include the SDK changes from manicminer/hamilton#206 (released in v0.55.0), then I'll take another look. Thanks!

docs/data-sources/group.md Outdated Show resolved Hide resolved
docs/resources/group.md Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
internal/services/groups/group_resource.go Outdated Show resolved Hide resolved
internal/services/groups/group_resource.go Outdated Show resolved Hide resolved
internal/services/groups/group_resource.go Outdated Show resolved Hide resolved
internal/services/groups/group_resource.go Outdated Show resolved Hide resolved
internal/services/groups/groups.go Outdated Show resolved Hide resolved
@github-actions github-actions bot added size/XL and removed size/L labels Feb 21, 2023
Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating @ccadruvi. I made a small change so that the current AU memberships are retrieved when updating the group. Just waiting for test results but this LGTM 👍

@manicminer
Copy link
Contributor

Test results (failures are unrelated)

Screenshot 2023-02-21 at 17 27 53

@manicminer manicminer merged commit be129aa into hashicorp:main Feb 21, 2023
manicminer added a commit that referenced this pull request Feb 21, 2023
@github-actions
Copy link

This functionality has been released in v2.35.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

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, 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 Mar 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an Azure AD Group in an Administrative Unit
3 participants