Get a User

Back to User Resources

Summary

Gets the details about an existing user identified by :user_name

GET /users/:user_name

Response

Example

Get the user with the user_name of jdoe.

GET /users/jdoe

200 OK
{
  "href" : "http://your.ambari.server/api/v1/users/jdoe",
  "Users" : {
    "user_id" : 100,
    "user_name" : "jdoe",
    "local_user_name" : "jdoe",
    "display_name" : "Jane Doe",
    "admin" : false,
    "active" : true,
    "consecutive_failures" : 0,
    "created" : 1497472842569,
    "groups" : [ ],
    "ldap_user" : false,
    "user_type" : "LOCAL"        
  }
  "widget_layouts" : [ ],
  "privileges" : [ ],
  "sources" : [
    {
      "href" : "http://your.ambari.server/api/v1/users/jdoe/sources/1004",
      "AuthenticationSourceInfo" : {
        "source_id" : 1004,
        "user_name" : "jdoe"
      }
    }
  ]
}