在Google Admin Reports API中,不同客户ID对同一应用的含义是什么?
我在同一应用程序的报告API响应中获得了不同的客户ID,例如Slack,但这些端口不对应于Slack特定的工作区,而是对我来说看起来是随机的。有人知道不同的客户ID在这里引用什么吗?
I am getting different client ID in reports API response for same app, eg slack, but these does not correspond to slack specific workspaces, rather it looks random to me. Does anyone know what does different client ID refers to here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能具有多种含义,其中大多数取决于如何开发应用程序。例如,在为应用程序设置GCP项目时,如果您要在同一项目下具有Web应用程序,移动设备(Android)或iOS应用程序,则每个平台都需要不同的客户端ID。
除此之外,一些开发人员倾向于根据所添加的功能以及如何管理将使用的范围来创建其应用程序,等等。
因此,预计应用程序可以具有多个客户端ID链接到它,但是您还可以检查客户端ID是否属于同一应用程序或管理员控制台中的其他应用程序。
您需要做的就是转到
Security
>API控件
>管理第三方应用访问
>添加应用程序
>OAUTH应用程序名称或客户端ID
,然后按名称搜索应用程序,然后查看客户ID是否在同一应用下匹配。请注意,某些应用程序可能会多次列出,具体取决于它们是否访问了同一服务的不同版本或实例,因为一个应用程序可能是附加组件,而另一个可能是桌面版本,另一个是移动应用程序等。
例如,如果您访问Slack的网站并单击
使用Google
按钮登录,则会得到这样的URL(实际上它更大,但作为示例)6060929292904014-S1U3IDJANLBHRBHR4NS5B1HCJGFN6363CR9NH.APPSS.GOOGEOGLEUSERCERCORCERCORCERCORCERCORCORCERCORCORCTENT.COM,如果您可以在您的ciled cinting the Civen cirtive cintive cintiv cirt
您可以使用该信息来信任或阻止希望用户在管理员控制台的API控件中访问的应用程序。
This can have multiple meanings and most of them depend on how the apps have been developed. For example, when setting up a GCP project for an app, if you are going to have a web app, mobile(Android), or iOS app under the same project, then you would need different client IDs for each platform.
In addition to that, some developers tend to create their apps in modules depending on the functionalities that they are adding, and how they will be managing the scopes they will be using, etc.
So it is expected that an app can have multiple client IDs linked to it, however you can also check if the client IDs belong to the same app or different apps in the Admin console.
All you need to do is to go to
Security
>API controls
>Manage third party app access
>Add app
>OAuth app name or Client ID
, then search the app by name and see if the client IDs match under the same app.Be aware that some apps may be listed multiple times depending if they are accessing different versions or instances of the same service, because one may be an add-on, then another one may be a desktop version, and another one the mobile app, etc.
In case you want to know if your users are using a specific authorized app, you can also extract the client ID of an app from the URL of the authentication page. For example, if you go to Slack's website and click the
Sign in with Google
button you will get a URL like this (it's actually larger but just as an example)If you check the URL you will see it has the client ID value at
You can use that information to trust or block the Apps you want your users to access in the API controls of the Admin console.