跳到主要内容

GetUser

调用该接口获取用户信息。

Request

get \tenants\{tenant_id}\users\{user_id}
NameLocated inTypeDescription
tenant_idpathstring
user_idpathstring

Response

Response 200

Code2DescriptionTypeSchema
200OKObjectv1GetUserResponse

v1GetUserResponse

NameTypeDescription
avatarstring
emailstring
external_idstring
nick_namestring
tenant_idstring
user_idstring
usernamestring

Response default

Code2DescriptionTypeSchema
defaultAn unexpected error response.ObjectrpcStatus

rpcStatus

NameTypeDescription
codeinteger
detailsArray[protobufAny][ 具体参数可见下面 protobufAny ]
messagestring

protobufAny

NameTypeDescription
@typestring