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 a platform_group_assignment resource #169

Open
SKY-Mark-Rhoades-Brown opened this issue Nov 29, 2024 · 1 comment
Open

Add a platform_group_assignment resource #169

SKY-Mark-Rhoades-Brown opened this issue Nov 29, 2024 · 1 comment
Assignees
Labels
enhancement Automatically generated release notes

Comments

@SKY-Mark-Rhoades-Brown
Copy link

SKY-Mark-Rhoades-Brown commented Nov 29, 2024

Is your feature request related to a problem? Please describe.

The documentation for JFrog Platform REST API shows that there is a Add or Remove a Group Member method. This would enable us to have a resource type that allows a 1-2-1 mapping between users and groups.

Using this new resource allows for independence of the creation of users and groups and treats the assignments separately. This would result in more items in state, but it allows for fine and granular control, and introduces a single level of responsiblity.

Describe the solution you'd like

  • I would like terraform resource that allows an assignment of one user to one group.
  • When the resource is created, it would add the group membership.
  • When the resource is deleted, it would delete the group membership.
  • The resource should detect if the resource is deleted.

Describe alternatives you've considered

Adding users to groups and adding groups to users. This is not ideal.

Additional context

@SKY-Mark-Rhoades-Brown SKY-Mark-Rhoades-Brown changed the title Add a platform_user_group resource Add a `platform_user_group_assignment resource Nov 29, 2024
@SKY-Mark-Rhoades-Brown SKY-Mark-Rhoades-Brown changed the title Add a `platform_user_group_assignment resource Add a platform_user_group_assignment resource Nov 29, 2024
@SKY-Mark-Rhoades-Brown SKY-Mark-Rhoades-Brown changed the title Add a platform_user_group_assignment resource Add a platform_group_assignment resource Nov 29, 2024
@alexhung
Copy link
Member

alexhung commented Dec 2, 2024

@SKY-Mark-Rhoades-Brown Thanks for the suggestion. We have similar concept in the Project provider (project resource with project_repository, project_user, etc.) to solve the same catch-22 issue, so this will be consistent and make lots of sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Automatically generated release notes
Projects
None yet
Development

No branches or pull requests

2 participants