GET /users/<sid>
Fetches information about specific users identified by subject ID (<sid>
). Authentication is required.
Request format
When Forming RBAC API requests to this endpoint, provide authentication and specify a user ID, such as:
curl "https://$(puppet config print server):4433/rbac-api/v1/users/<SID>" -H "X-Authentication:$(puppet-access show)"
To request multiple users, append a comma-separated list of user IDs, such as
curl "https://$(puppet config print server):4433/rbac-api/v1/users?id=<SID>,<SID>" -H "X-Authentication:$(puppet-access show)"
Querying multiple users technically calls the GET /users endpoint with the
id
parameter.Response format
The response is a JSON object that contains metadata for the requested user (or users). For example, this response is for a local user:
{"id": "fe62d770-5886-11e4-8ed6-0800200c9a66", "login": "Amari", "email": "amariperez@example.com", "display_name": "Amari Perez", "role_ids": [1,2,3...], "is_group" : false, "is_remote" : false, "is_superuser" : false, "is_revoked": false, "last_login": "2014-05-04T02:32:00Z"}
And this response is for a remote user:
{"id": "07d9c8e0-5887-11e4-8ed6-0800200c9a66", "login": "Jean", "email": "jeanjackson@example.com", "display_name": "Jean Jackson", "role_ids": [2,3...], "inherited_role_ids": [], "is_group" : false, "is_remote" : true, "is_superuser" : false, "group_ids": ["b28b8790-5889-11e4-8ed6-0800200c9a66"], "is_revoked": false, "last_login": "2014-05-04T02:32:00Z"}
For information about keys in the response, refer to Users endpoints keys.
For information about error responses, refer to RBAC service errors .