Where Are My Google Apps Domains?

2019-03-04 18:23发布

We've been using Google Apps for Edu in our University for some time now and we have multiple domain setups. There's a primary domain (uniben.edu e.g john.smith@uniben.edu) and other domains for students (scott.tigger@law.uniben.edu, john.smith@agric.uniben.edu). However, when I try to obtain all users using UserManager.getAllUsers(); it only returns accounts under the primary uniben.edu domain, leaving out accounts created / managed under the other domains.

Using Google App Script, how can I retrieve these other domains and get their users as well. I want to be able to inspect accounts across all our domains. Thanks in advance.

1条回答
Viruses.
2楼-- · 2019-03-04 18:52

There is no built-in way to access users from another domain. I'm not certain if it would work, but you could potentially create a script in each domain that returned the users for that domain, and then include those scripts as a library in the master script.

查看更多
登录 后发表回答