调用GetUser查询指定用户信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cloudsso:GetUser |
get |
*User
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| UserId |
string |
是 |
用户 ID。 |
u-00q8wbq42wiltcrk**** |
| DirectoryId |
string |
是 |
目录 ID。 |
d-00fc2p61**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| User |
object |
用户信息。 |
|
| Status |
string |
用户的状态。取值:
|
Enabled |
| UserName |
string |
用户名称。 |
Alice |
|
string |
用户的电子邮箱。 |
Alice@example.com |
|
| Description |
string |
用户的描述。 |
This is a user. |
| UserId |
string |
用户 ID。 |
u-00q8wbq42wiltcrk**** |
| FirstName |
string |
用户的名。 |
Alice |
| CreateTime |
string |
用户的创建时间(UTC 时间)。 |
2021-10-26T03:03:42Z |
| ProvisionType |
string |
用户的类型。取值:
|
Manual |
| DisplayName |
string |
用户的显示名称。 |
Alice |
| UpdateTime |
string |
用户的修改时间(UTC 时间)。 |
2021-10-26T06:43:55Z |
| LastName |
string |
用户的姓。 |
Lee |
| ExternalId |
object |
外部身份提供商的用户标识符信息。 |
|
| Id |
string |
外部身份提供商的用户标识符。 |
c73******a5fdd5 |
| Issuer |
string |
外部身份同步渠道,当前仅支持 SCIM 同步。 |
SCIM |
| Tags |
array<object> |
||
|
object |
|||
| Key |
string |
||
| Value |
string |
||
| RequestId |
string |
请求 ID。 |
EE42D2C4-A30A-59B7-ACEB-6D22FB44174A |
示例
正常返回示例
JSON格式
{
"User": {
"Status": "Enabled",
"UserName": "Alice",
"Email": "Alice@example.com",
"Description": "This is a user.",
"UserId": "u-00q8wbq42wiltcrk****",
"FirstName": "Alice",
"CreateTime": "2021-10-26T03:03:42Z",
"ProvisionType": "Manual",
"DisplayName": "Alice",
"UpdateTime": "2021-10-26T06:43:55Z",
"LastName": "Lee",
"ExternalId": {
"Id": "c73******a5fdd5",
"Issuer": "SCIM"
},
"Tags": [
{
"Key": "",
"Value": ""
}
]
},
"RequestId": "EE42D2C4-A30A-59B7-ACEB-6D22FB44174A"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。