List emails of clients accounts on Google Apps

扶醉桌前 提交于 2019-12-12 03:14:42

问题


You will have to excuse my confusion here...

Basically, we have clients with hosted accounts and I need to somehow get a list of emails per domain name.

Say, test.com is a Google hosted account and that it uses Google's email service for admin@test.com, and several more, how can I find (programmaticaly) this complete list of emails?

I've looked around for a while and it only brought more confusion. I think my question relates to this Google API document.

While I'm usually armed with at least one line of code, I'm really clueless on this issue. Perhaps someone out there might shed light on this issue.

PS: I also tried Google API Explorer, but it didn't help at all.


回答1:


You should use Google Apps Reporting API and get the Accounts report. Of-course, OAuth is recommended auth approach.

http://code.google.com/googleapps/domain/reporting/google_apps_reporting_api.html#Accounts_Report

Provisioning API can also perform the same task and with a real time list of users: http://code.google.com/googleapps/domain/provisioning_API_v2_developers_guide.html#Retrieving_Users_in_a_Domain

But, its going to be slower for bigger domains since its a paginated feed. Reporting API on the other downloads a CSV file.



来源:https://stackoverflow.com/questions/8939974/list-emails-of-clients-accounts-on-google-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!