Skip to content

cloudidentity: Add dynamic group support to google_cloud_identity_group#17107

Open
keeleysam wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
keeleysam:cloudidentity
Open

cloudidentity: Add dynamic group support to google_cloud_identity_group#17107
keeleysam wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
keeleysam:cloudidentity

Conversation

@keeleysam
Copy link
Copy Markdown
Contributor

Summary

  • Adds dynamic_group_metadata block to google_cloud_identity_group, enabling CEL query-based automatic membership (e.g., user.organizations.exists(org, org.department=='Engineering'))
  • Uses update_mask_fields to send dynamicGroupMetadata.queries on updates, matching the Cloud Identity API's expected field path
  • Includes documentation example and acceptance tests for create, import, and update flows

Motivation

This replaces the need for community forked terraform-provider-googleworkspace to manage dynamic groups. Since the Cloud Identity API already supports dynamicGroupMetadata on the same groups/{group_id} endpoint, extending the existing resource is the correct approach rather than creating a separate resource.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

cloudidentity: added `dynamic_group_metadata` field to `google_cloud_identity_group` resource

Adds dynamicGroupMetadata as an optional nested object on the Cloud
Identity Group resource, enabling CEL query-based dynamic membership.
This brings parity with the forked googleworkspace provider's
group_dynamic resource so it can be retired.

The update mask uses dynamicGroupMetadata.queries to match the API's
expected field path. Includes a documentation example and acceptance
tests for create, import, and update flows.
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 14, 2026
@github-actions github-actions bot requested a review from melinath April 14, 2026 04:22
@github-actions
Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@melinath, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-approval Pull requests that need reviewer's approval to run presubmit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants