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

Add members to organization data source. #811

Conversation

nuclearsandwich
Copy link
Contributor

Lifting heavily from how repositories are fetched for the organization data source I added an attribute containing all members of the organization.

I'm opening early for early feedback.

I'm using this to have terraform notify me of "unmanaged" members in the organization using the an output like the following:

output "unmanaged_members" {
  value = setsubtract(
    data.github_organization.myorg.members,
    setunion(
      local.admins,
      local.team1,
      local.team2,
    )
  )
}

Lifting heavily from how repositories are fetched for the organization
data source I added an attribute containing all members of the
organization.
@jcudit jcudit added this to the v4.12.0 milestone Jun 15, 2021
@jcudit jcudit merged commit cefd9b6 into integrations:master Jun 18, 2021
@nuclearsandwich nuclearsandwich deleted the add-members-to-organization-data-source branch June 19, 2021 02:24
@Olin-Vorechovsky
Copy link

There are no documentation changes upon this change: https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/organization (latest == 4.12.1)

And there are more missing than members like description, name, login ...

cc: @jcudit

kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
Lifting heavily from how repositories are fetched for the organization
data source I added an attribute containing all members of the
organization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants