Reputation: 486
Im using SDK Admin API to create users, aliases and groups.
I would like to add current and future users to any group like Google does in his admin but i cant see any endpoint to do this in his API.
Do you know if it is possible?
Thanks
Edit: To do it in admin console
Go to groups -> click on "Add members" in one group
In the modal -> click on "Advanced" and mark checkbox "Add all current and future users of "domain name" to this group with All Email setting"
Upvotes: 2
Views: 233
Reputation: 19309
This is currently not possible via API.
There's no way, neither through Directory API nor via Groups Settings API, to automatically add any created user to a Group.
I'd suggest you to file a Feature Request in Issue Tracker here in order to request this functionality.
If you're creating Users via API, I'd just code my application so that, right after creating any user, this user is added to the desired Groups via members.insert.
Upvotes: 2