*
查看用户详情
请求信息
请求行
GET /auth/v1/users/{name}
查看用户详情。
返回信息
Content-Type
application/json
状态码: 200
OK
返回体示例
用户的定义信息。
{
"metadata": {
"annotations": {
"alauda.io/display-name": "user01@alauda.io"
},
"labels": {
"auth.alauda.io/user.connector_type": "oidc",
"auth.alauda.io/user.email": "cbf974556d481e52fdd20908bf88413a",
"auth.alauda.io/user.state": "active",
"auth.alauda.io/user.username": "Y5Tr"
},
"name": "cbf974556d481e52fdd20908bf88413a"
},
"spec": {
"account:": "",
"connector_name": "keycloak",
"connector_type": "oidc",
"email": "user01@alauda.io",
"expired": {
"begin": "2020-12-08T09:47:56Z",
"end": "2020-12-08T09:47:56Z"
},
"groups": [
"dev"
],
"is_admin": false,
"is_disabled": false,
"last_login_time": "2020-12-08T09:47:56Z",
"login_failture_times": 0,
"state": "active",
"username": "User01"
}
}
返回体说明
名称 | 类型 | 描述 |
---|---|---|
metadata | object | 查看公共参数 |
spec | object |
用户的描述。
字段路径:spec |
spec.connector_name | string |
连接器(Connectors)名称。
字段路径:spec.connector_name |
spec.connector_type | string |
连接器(Connectors)类型。
字段路径:spec.connector_type |
spec.email | string |
邮箱地址。
字段路径:spec.email |
spec.expired | object |
配置账号的有效期。
字段路径:spec.expired |
expired.begin | string |
账号有效期的开始时间。
字段路径:spec.expired.begin |
expired.end | string |
账号有效期的截止时间。
字段路径:spec.expired.end |
spec.groups | array |
用户组。
字段路径:spec.groups |
spec.groups[] | string |
用户组。
字段路径:spec.groups[] |
spec.is_admin | boolean |
检查用户是否是管理员。
字段路径:spec.is_admin |
spec.username | string |
用户名。
字段路径:spec.username |