【问题标题】:How can I retrieve the CustomerId from a using Google API calls from a NonAdmin user?如何从非管理员用户的使用 Google API 调用中检索 CustomerId?
【发布时间】:2014-01-30 04:13:50
【问题描述】:

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

作为非管理员,我无法访问许多 API。我有什么方法可以检索我的帐户的“customerId”吗?

【问题讨论】:

    标签: google-api google-admin-sdk google-directory-api


    【解决方案1】:

    对于 Google Apps 实例中的所有用户(包括其他辅助域中的用户),customerId 都是相同的。

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

    为了通过 users.get() API 调用检索 customerId,经过身份验证的用户至少需要是通过 API 权限对用户具有只读访问权限的委派管理员。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-22
      • 1970-01-01
      • 2012-12-07
      • 2023-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多