检索 google 中的工作用户组

Retrieve user groups in google for work

我正在构建后台应用程序并希望利用我们公司 Google 的工作目录进行身份验证。有没有办法检索用户在组织内所属的组?也许在通过 OpenId 进行身份验证时让他们加入声明?

虽然您的问题有点不清楚(您使用什么来构建应用程序?"the groups a user belongs to" 到底是什么意思?),但您可以使用 Directory API 相当轻松地检索用户信息.

对于实际身份验证,您可以use Google as an Oauth identity provider