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

List org/group users #1749

Open
plejon opened this issue Jun 5, 2024 · 2 comments
Open

List org/group users #1749

plejon opened this issue Jun 5, 2024 · 2 comments

Comments

@plejon
Copy link

plejon commented Jun 5, 2024

What is currently missing?

List group members.
https://api.aiven.io/doc/#tag/Groups/operation/UserGroupMemberList

List organization users
https://api.aiven.io/doc/#tag/Users/operation/OrganizationUserList

Then a user login via IDP, i can specify to put users in a group, or the team option. lets say group name is IDP-USERS.

With terraform i would like to list members of IDP-USERS, and match if user is in a Azure Ad admin group.
If they are, i would put this user in an Aiven group that had admin privileges on specific projects.

I have now solved this with two IDP setups. however, this is not ideal since it will require the users to pick form
list of urls for account registration.

How could this be improved?

enable listing users and put them in groups based on permissions

Is this a feature you would work on yourself?

no

@rsalevsky
Copy link

I'm not sure if I fully understand the problem you are solving. There is a ressource https://registry.terraform.io/providers/aiven/aiven/latest/docs/resources/organization_group_project which allows you to add a group to a project with a specific role.

@plejon
Copy link
Author

plejon commented Jul 1, 2024

sorry for late response. I solved this by manually adding SSO users to Aiven Org groups via cronjob.
if user creates an account, within 1h the user will be added to a group that has any of read/developer/operator permissions on all projects. Target Aiven Org group is decided on IAM on my end.

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

No branches or pull requests

2 participants