有关特定用户的信息包括用户首选项和授权例外。在此示例中,user1 具有名为 auth-000 的授权例外,该例外授予 user1 配置和发布警报的能力。user1 的首选项全都采用默认值。
请求示例:
GET /api/user/v1/users/user1 HTTP/1.1
结果示例:
{
"user": {
"href": "/api/user/v2/users/user1",
"logname": "user1",
"type": "directory",
"uid": user1uid,
"fullname": "Real Name",
"require_annotation": false,
"roles": ["basic"],
"kiosk_mode": false,
"kiosk_screen": "status/dashboard",
"exceptions": [
"scope": "alert",
"allow_configure": true,
"allow_post": true,
"href": "/api/user/v2/users/user1/exceptions/auth-000"
],
"preferences": {
"href": "/api/user/v2/users/user1/preferences",
"locale": "C",
"login_screen": "status/dashboard",
"session_timeout": 15,
"cli_idle_timeout": -1,
"advanced_analytics": false,
"keys": [],
"tokens": []
}
}
}