Back to Authentication Source Resources
Summary
Returns a collection of the existing authentication sources for a given user, identified by :user_name.
GET /users/:user_name/sources
Response
Example
Get the collection of all authentication sources for user with username jdoe.
GET /users/jdoe/sources 200 OK { "href" : "http://your.ambari.server/api/v1/users/jdoe/sources?fields=*", "items" : [ { "href" : "http://your.ambari.server/api/v1/users/jdoe/sources/1004", "AuthenticationSourceInfo" : { "authentication_type" : "LOCAL", "created" : 1497472842579, "source_id" : 1004, "updated" : 1497472842579, "user_name" : "jdoe" } }, { "href" : "http://your.ambari.server/api/v1/users/jdoe/sources/3653", "AuthenticationSourceInfo" : { "authentication_type" : "LDAP", "created" : 1499372841818, "source_id" : 3653, "updated" : 1499372841818, "user_name" : "jdoe" } }, { "href" : "http://your.ambari.server/api/v1/users/jdoe/sources/3654", "AuthenticationSourceInfo" : { "authentication_type" : "LDAP", "created" : 1499373089670, "source_id" : 3654, "updated" : 1499373089670, "user_name" : "jdoe" } }, { "href" : "http://your.ambari.server/api/v1/users/jdoe/sources/3655", "AuthenticationSourceInfo" : { "authentication_type" : "PAM", "created" : 1499373089677, "source_id" : 3655, "updated" : 1499373089677, "user_name" : "jdoe" } } ] }