获取Google Apps域中的用户列表 [英] Get a list of users on a Google Apps domain

本文介绍了获取Google Apps域中的用户列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Google Apps Marketplace中有一个应用程序(新的应用程序,即使用OAuth2),该应用程序需要获取域中的用户列表.

We have an app in the Google Apps Marketplace (the new one, i.e. using OAuth2) which needs to get a list of users in the domain.

我们目前正在为此使用Provisioning API(我们已经淘汰了该API,但似乎没有更好的选择了).但是,最近,对于某些域,我们开始获得您无权访问此API" 403.

We're currently using the Provisioning API for this (which we know is deprecated, but there seems to be no better option). Lately however, we're starting to get "You are not authorized to access this API" 403's, for some domains.

有人知道何时可以开始使用新的Admin SDK Directory API来获取用户列表吗?现在这是不可能的,因为即使管理员安装了该应用程序,该应用程序也只有在他们进入域安全设置并手动选中启用API访问权限"后才能工作,请在此处查看相关问题:

Does anyone know when it will be possible to start using the new Admin SDK Directory API to get a list of users? This isn't possible now because even when an administrator installs the app, it would only work if they go to their domain security settings and manually check "Enable API Access", see the related question here: How can I access user info on a domain without the domain administrator enabling API access?

推荐答案

您可以开始使用Admin SDK Directory API.您链接到的问题是关于管理员显式禁用API访问的情况.当他们安装了应用程序后,我们会重新启用该设置并告知他们.

You can start using Admin SDK Directory API. The question you linked to was regarding the case where an admin explicitly disables API access. When they install and an app, we re-enable that setting and let them know.

不确定403s,但那是一个较旧的API,已被Admin SDK取代.

Not sure about the 403s but that is an older API that is replaced by the Admin SDK.

这篇关于获取Google Apps域中的用户列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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