Method: customers.v2.Users.get

检索用户。

HTTP 请求

GET https://cloudidentityscim.googleapis.com/v1/customers/{customerId}/v2/Users/{userId}

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

必需。客户 ID。

userId

string

必需。用户 ID。

查询参数

参数
attributes

string

可选。RFC 7644 第 3.4.2.5 节中所述的属性参数。必须是顶级属性的逗号分隔列表(不含空格)。

只能包含顶级属性。attributes 参数中不支持子属性(例如 name.familyName)。

请求正文

请求正文必须为空。

响应正文

如果成功,则响应正文包含一个 User 实例。

授权范围

需要以下 OAuth 范围之一:

  • https://www.googleapis.com/auth/admin.directory.user.readonly
  • https://www.googleapis.com/auth/admin.directory.user

如需了解详情,请参阅授权指南