Reputation: 347
We are using Google for corporate since last 5 years. There have been many dozens google groups created by different site/business division/local administrators. Now we need to know, for each employee, which all groups he is a part of. Does google provide any API to fetch this details ?
Upvotes: 0
Views: 58
Reputation: 37798
Yes. The Directory API has a function to Retrieve all groups for a domain or the account. Here's a part in the docs that I think is what you are specifically aiming for:
All groups for the account — Use the
customer
argument with eithermy_customer
or the account'scustomerId
value. As an account administrator, use the string my_customer to represent your account'scustomerId
. If you are a reseller accessing a resold customer's account, use the resold account'scustomerId
. For thecustomerId
value use the account's primary domain name in the Retrieve all users in a domain operation's request. The resulting response has thecustomerId
value.
Upvotes: 0