I created 1 admin(File realm), 2 users (Native realm) using Shield.
Admin created with esusers -r admin command (so, all indices, all privileges)
User1 has "all privileges" to 3 indices in the cluster.
User2 has "all privileges" to 5 indices in the cluster (with field level security)
I could execute queries on ES side, without any issues. I configured Kibana with link provided in docs here.
But, when I login using the user credentials (either User1 or User2), I could not see "Time Picker" on the top-right hand corner of the Kibana Dashboard. If I login as Admin, I can see that. I would like to have this Time Picker in Kibana even for native users. Please help me out.
If you create this role and assign it to those two users, I expect that Kibana will begin working as expected. tbh, I haven't heard of the time picker not showing up, but I'm imagining it's related.
Yes. I have given the privileges to both the users to access .kibana index. Otherwise, I was not even able to open the Kibana dashboard using these user credentials.
I created 2 roles Role1, Role2 and assigned Role1 to User1 and Role2 to User2. Below are the commands:
I can see the entire Kibana Dashboard exactly as I want based on the user roles I created. But, the only problem is, for these users, I cannot see the TimePicker on top-right hand corner. If I login as admin, I can see TimePicker.
This admin user is created in File realm (esusers -r admin), where as users are created in Native Realm. I also gave following configuration in elasticsearch.yaml:
I haven't done that, but the problem seems to be solved. I cannot reproduce the issue now. All I did was I deleted all the indices, including .kibana index, and restarted Kibana. I think the problem might be with .kibana index caching some data, and I have been managing lots of user roles, users, performing snapshots and restore.
I will keep your suggestion in mind, and if I come to this issue again, I will give a try with Step 6 from your link.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.