如何从NonAdmin用户使用Google API调用中检索CustomerId? [英] How can I retrieve the CustomerId from a using Google API calls from a NonAdmin user?

查看:136
本文介绍了如何从NonAdmin用户使用Google API调用中检索CustomerId?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检索Google Apps Enterprise上非管理员用户的'customerId'值.

I'm trying to retrieve the 'customerId' value for a Non-Admin user on a Google Apps Enterprise.

作为非管理员,有很多我将无法访问的API.我有什么办法可以找回我帐户的"customerId"?

As a non-admin there are a lot of APIs I won't have access to. Is there any way for me to retrieve the 'customerId' for my account?

推荐答案

customerId对于Google Apps实例中的所有用户(包括其他二级域中的用户)都是相同的.

The customerId is identical for all users in the Google Apps instance (including users in other secondary domains).

如果您使用的是单个Google Apps实例,则customerId是静态的,因此一旦从管理员帐户中发现它,就可以对其进行硬编码.

If you're working with a single Google Apps instance, the customerId is static and thus once discovering it from an admin account, you can hard code it.

为了通过users.get()API调用检索customerId,经过身份验证的用户至少需要是委派管理员,并且可以通过API特权对用户进行只读访问.

In order to retrieve the customerId via the users.get() API call, the authenticated user needs to at the very least be a delegated admin with read-only access to users via the API privileges.

这篇关于如何从NonAdmin用户使用Google API调用中检索CustomerId?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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