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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable users to see 'derived' memberships of Google groups in a new data source similar to google_cloud_identity_group_memberships #18128

Open
SarahFrench opened this issue May 14, 2024 · 0 comments

Comments

@SarahFrench
Copy link
Member

SarahFrench commented May 14, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

(Opened on behalf of a customer)

The google_cloud_identity_group_membership data source helps user retrieve the members of a given Google Group. Groups can be members of groups, and currently that data source will show that group among the list of members. Any individuals how have membership of a group via another group are not explicitly named.

For example, google_cloud_identity_group_membership would not list User X as an explicit member of Group A from the diagram below:

Group A _____________
|         Group B___
|          |  User X
|          |_________
|____________________

The cloud identity API has an endpoint called searchTransitiveMemberships (https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships/searchTransitiveMemberships) that would enable getting the list of all 'indirect' members of a group. The response from this API lists members of a given group and notes whether "relationType": "DIRECT" or "relationType": "INDIRECT" for each member found.

Using the diagram above, the new google_cloud_identity_group_transative_memberships data source (when provided Group A as an argument) would list Group B as a DIRECT member of Group A, and User X as an INDIRECT member of Group A.

New or Affected Resource(s)

  • google_cloud_identity_group_transative_memberships

Potential Terraform Configuration

data "google_cloud_identity_group_transative_memberships" "members" {
  group = "groups/123eab45c6defghi"
}

References

No response

b/343221192

@github-actions github-actions bot added forward/review In review; remove label to forward service/cloudidentity-groups labels May 14, 2024
@rileykarson rileykarson added new-data-source and removed forward/review In review; remove label to forward labels May 28, 2024
@rileykarson rileykarson added this to the Goals milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants