是否有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.customerhttps://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
相关产品推荐
相关产品推荐

