Hi @karanshah
That seems to clarify things a bit. None of the users are found.
But surprisingly the users still work when communicating with elasticsearch.
curl -XGET -u elastic 'hostname:port/.security/user/elastic?pretty'
This works fine with the username 'elastic' (default superuser)
But it is unable to find the user 'elastic'
Response:
{
"_index" : ".security",
"_type" : "user",
"_id" : "elastic",
"found" : false
}
What am I doing wrong?
Update:
Seems like this command lists only the new users and roles that I defined and not the default users ('elastic' and 'kibana').
So I tried in on the new user (my-company-admin), and here is the result:
{
"_index" : ".security",
"_type" : "user",
"_id" : "my-company-admin",
"_version" : 1,
"found" : true,
"_source" : {
"username" : "my-company-admin",
"password" : "some encoded stuff",
"roles" : [
"my_company_admin"
],
"full_name" : null,
"email" : null,
"metadata" : null,
"enabled" : true
}
}
Details for the user role (my_company_user):
{
"_index" : ".security",
"_type" : "role",
"_id" : "my_company_admin",
"_version" : 1,
"found" : true,
"_source" : {
"cluster" : [ ],
"indices" : [
{
"names" : [
"my_company*"
],
"privileges" : [
"manage",
"read",
"index"
]
},
{
"names" : [
".kibana*"
],
"privileges" : [
"manage",
"read",
"index"
]
}
],
"run_as" : [ ],
"metadata" : { }
}
}