Hello,
I have some troubles to add a document into an index. Thank you for your answer.
I have created a user kra28 and index pdbs_index and add the privileges using:
{
"indices": [
{
"names": [
"pdbs_index"
],
"privileges": [
"create_doc"
]
}
]
}
When I check it, I get:
{"kra28":{"cluster":[],"indices":[{"names":["pdbs_index"],"privileges":["create_doc"],"allow_restricted_indices":false}],"applications":[],"run_as":[],"metadata":{},"transient_metadata":{"enabled":true}}}*
However when I want to add a document using:
http://xyz:9200/pdbs_index/_doc/1
I get the following issue:
{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:data/write/index] is unauthorized for user [kra28] with effective roles [] (assigned roles [create_doc] were not found) on indices [pdbs_index], this action is granted by the index privileges [create_doc,create,index,write,all]"}],"type":"security_exception","reason":"action [indices:data/write/index] is unauthorized for user [kra28] with effective roles [] (assigned roles [create_doc] were not found) on indices [pdbs_index], this action is granted by the index privileges [create_doc,create,index,write,all]"},"status":403}*
It is not clear for me, since, it seems, that I have created the privileges.
Thank you for your answer.
Michal