Lorraine
Lorraine

Reputation: 486

Google Admin SDK API Create group with all current and future users

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

enter image description here

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

Answers (1)

Iamblichus
Iamblichus

Reputation: 19309

Answer:

This is currently not possible via API.

Explanation:

There's no way, neither through Directory API nor via Groups Settings API, to automatically add any created user to a Group.

File a Feature Request:

I'd suggest you to file a Feature Request in Issue Tracker here in order to request this functionality.

Workaround:

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

Related Questions