我的Google Apps域在哪里? [英] Where Are My Google Apps Domains?

查看:75
本文介绍了我的Google Apps域在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在我们的大学使用Google Apps for Edu一段时间,并且我们有多个域名设置。有一个主域名(uniben.edu,例如john.smith@uniben.edu)和其他域名(scott.tigger@law.uniben.edu,john.smith@agric.uniben.edu)。但是,当我尝试获取使用UserManager.getAllUsers()的所有用户时;它只会返回主uniben.edu域下的帐户,而不会在其他域下创建/管理帐户。

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.

使用Google App Script,我如何检索这些其他域并获得他们的用户。我希望能够检查我们所有域名的帐户。提前致谢。

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.

推荐答案

没有内置的方式可以访问来自其他域的用户。我不确定它是否可行,但您可以在每个返回该域用户的域中创建脚本,然后将这些脚本作为库包含在主脚本中。

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.

这篇关于我的Google Apps域在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆