mrparkers / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
MIT License
592 stars 291 forks source link

feat(data-source): Add keycloak group membership datasource #945

Open deedubs opened 3 months ago

deedubs commented 3 months ago

Why?

We are attempting to make Keycloak our single-source of truth for various systems. To do this we needed to be able to fetch the members of a group so we can, for example, sync a GitHub Team to a Keycloak groups membership.

How?

We added a new data-source keycloak_group_members to return the members of a particular group.

data "keycloak_group_members" "my-group" {
  realm_id   = "my-realm"
  group_name = "my-group"
}

We have also added test coverage for this new functionality.

Thanks for your time considering this pull-request.

igor-nikiforov commented 1 month ago

@mrparkers could you please review this PR? Thanks!

deedubs commented 4 days ago

I wasn't initially able to replicate the CI failures locally. If this is the hangup I can take another swing at it.

Open to pointers from others whom have landed pull requests