You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

是否有API可查询Google Admin Console中用于SSO的OAuth第三方应用访问列表?

获取Google Admin Console中SSO OAuth应用列表的API方案

是的,存在对应的API可以获取这类应用列表,具体使用Google Workspace Admin SDK的Enterprise Applications API:

  • 核心调用端点:GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/apps/enterprise

    • 该接口会返回Admin Console中所有已注册的第三方企业应用,包含启用SSO的OAuth应用条目
    • 可直接用my_customer替代customerId,指代当前管理员对应的Google Workspace客户
  • 关键过滤字段:

    • applicationType:值为OAUTH时,对应OAuth类型的应用
    • ssoEnabled:布尔值,标记该应用是否已启用SSO
  • 调用前置要求:

    • 拥有Google Workspace管理员权限
    • 在Google Cloud项目中启用Admin SDK API
    • 配置OAuth 2.0凭据(服务账号或用户令牌),并申请以下权限范围之一:
      • https://www.googleapis.com/auth/admin.directory.customer
      • https://www.googleapis.com/auth/admin.directory.apps.enterprise
  • curl调用示例:

curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  "https://admin.googleapis.com/admin/directory/v1/customer/my_customer/apps/enterprise"

内容的提问来源于stack exchange,提问作者Chandermani

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.22 19:51:28