Add group membership management with role-based access control#3
Merged
hameedullah merged 3 commits intomainfrom Feb 3, 2026
Merged
Add group membership management with role-based access control#3hameedullah merged 3 commits intomainfrom
hameedullah merged 3 commits intomainfrom
Conversation
- Add variables for owners, maintainers, developers, reporters, and guests - Add flexible members variable for custom access levels with expiration - Create gitlab_group_membership resources for all access levels - Add outputs for member information (members, member_count, member_ids) - Update README with usage examples and documentation Co-authored-by: hameedullah <59614+hameedullah@users.noreply.github.com>
- Add locals block to prepare user ID sets efficiently - Reduce code duplication across membership resources - Improve code readability and maintainability Co-authored-by: hameedullah <59614+hameedullah@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for user ID list as variable for access roles
Add group membership management with role-based access control
Feb 3, 2026
hameedullah
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Module now supports managing GitLab group members with different access levels (owner, maintainer, developer, reporter, guest).
Changes
Variables (variables.tf)
membersmap for flexible configuration with optional expiration datesowners,maintainers,developers,reporters,guestsResources (main.tf)
gitlab_group_membershipresources usingfor_eachfor each access levelOutputs (outputs.tf)
members: All members with access levels and expiration datesmember_count: Total member countmember_ids: Distinct list of user IDsUsage
Simple lists for common use:
Advanced configuration with expiration:
All new variables default to empty, maintaining backwards compatibility.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.