GET /users/<sid>
Fetches a single user by its subject ID (sid). Authentication is required.
Response format
For all users, the user contains an ID, a login, an email, a display name, a list of role-ids the user is directly assigned to, and the last login time in UTC-based ISO-8601 format (YYYY-MM-DDThh:mm:ssZ), or null if the user has not logged in yet. It also contains an "is_revoked" field, which, when set to true, prevents a user from authenticating.
For example:
{"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"} For remote users, the response additionally contains a field indicating the IDs of the groups the user inherits roles from and the list of inherited role IDs.
For example:
{"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"}