3.3. Showing user details¶
GET /v3/users/{user_id}
Show details of a user with the specified ID.
Source: https://docs.openstack.org/api-ref/identity/v3/index.html?expanded=#show-user-details
3.3.1. Request¶
3.3.1.1. Parameters¶
Name | In | Type | Description |
---|---|---|---|
user_id |
path | string | The user ID. |
3.3.1.2. Example¶
# curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:5000/v3/users/2973892bee384ca6b8c9886f0c4a8815
3.3.2. Response¶
3.3.2.1. Parameters¶
Name | In | Type | Description |
---|---|---|---|
user |
body | object | A user object |
default_project_id (Optional) |
body | string | The ID of the default project for the user. |
domain_id |
body | string | The ID of the domain. |
enabled |
body | boolean | If the user is enabled, this value is true .
If the user is disabled, this value is false . |
id |
body | string | The user ID. |
links |
body | object | The links for the user resource. |
name |
body | string | The user name. Must be unique within the owning domain. |
password_expires_at |
body | string | The date and time when the password expires. The time zone is UTC. This is a response object attribute; not valid for requests.
A New in version 3.7 |
3.3.2.2. Status codes¶
3.3.2.2.1. Success¶
Code | Reason |
---|---|
200 - OK |
Request was successful. |
3.3.2.2.2. Error¶
Code | Reason |
---|---|
400 - Bad Request |
Some content in the request was invalid. |
401 - Unauthorized |
User must authenticate before making a request. |
403 - Forbidden |
Policy does not allow current user to do this operation. |
404 - Not Found |
The requested resource could not be found. |
3.3.2.3. Example¶
{
"user": {
"name": "user1_renamed",
"links": {
"self": "https://<node_IP_addr>:5000/v3/users/2973892bee384ca6b8c9886f0c4a8815"
},
"domain_id": "f2eeaaf15c254d4fa10255796122c8ec",
"enabled": true,
"email": "user1@example.com",
"options": {},
"id": "2973892bee384ca6b8c9886f0c4a8815",
"password_expires_at": null
}
}
Version 5.0.0 — Feb 01, 2022