-
Notifications
You must be signed in to change notification settings - Fork 879
Manage Google Group memberships via API #228
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
Comments
I know Christoph ended up starting a steering@ thread, my main question is what are next steps |
/assign @cblecker |
I have created a [email protected] account, assigned to a "Group Admin" role, and given credentials to @dims The intent is for this to be temporary / exploratory to prove we can do what we want via API. We should follow up with a more constrained account that has exactly what we need. |
@cblecker in the API that creates new groups, there is no support for switching on |
So we will have to create the groups by hand (with that option on) and then script the add/delete of members. |
@dims: that's because that setting is in the OTHER API I mentioned at the top: https://developers.google.com/admin-sdk/groups-settings/manage 🤦♂ I don't know WHY Google had to split it up into two different API schemes, but yeah. |
ah! thanks @cblecker |
I walked through https://developers.google.com/admin-sdk/directory/v1/guides/delegation#delegate_domain-wide_authority_to_your_service_account for a client_id @dims provided to me |
WIP is here #248 it uses the service account @spiffxp minted. all the APIs i need (so far!) are working. will hammer out a yaml structure and turn the WIP into something we can use. Anyone else wants to be able to run the commands, please send me your GPG key, i used |
all works! |
I once again walked through https://developers.google.com/admin-sdk/directory/v1/guides/delegation#delegate_domain-wide_authority_to_your_service_account for a client_id @dims provided to me, granting the following scopes
|
/close |
@spiffxp: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
If we use the kubernetes.io gsuite, we should be able to manage group creation and membership via an API.
We should be able to create a service account, and then delegate it the following scopes via domain-wide delegation:
https://www.googleapis.com/auth/admin.directory.group
: https://developers.google.com/admin-sdk/directory/v1/guides/delegationhttps://www.googleapis.com/auth/apps.groups.settings
: https://developers.google.com/admin-sdk/groups-settings/authWith these, we should be able to script creation of groups, administer their settings, and modify membership of them. It appears that we should be able to do this just with Gsuite Basic, without adding on any extra options/services/cost.
It appears there are also SDK libraries to get started:
https://godoc.org/google.golang.org/api/admin/directory/v1
https://godoc.org/google.golang.org/api/groupssettings/v1
The text was updated successfully, but these errors were encountered: