# How to separate Machine Learning jobs in Kibana per user

**URL:** <https://discuss.elastic.co/t/how-to-separate-machine-learning-jobs-in-kibana-per-user/124756>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [March 20, 2018, 12:24pm UTC](https://discuss.elastic.co/t/how-to-separate-machine-learning-jobs-in-kibana-per-user/124756 "2018-03-20T12:24:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vakhtang](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@vakhtang](https://discuss.elastic.co/u/vakhtang)\
**Post date:** [March 20, 2018, 12:24pm UTC](https://discuss.elastic.co/t/how-to-separate-machine-learning-jobs-in-kibana-per-user/124756/1 "2018-03-20T12:24:10Z")

</div>

Hello,

I try to provide for the customers dedicated dashboards (User can see only his own dashboards). So, as workaround i installed two Kibana instances with different .kibana indices. Now the user could see his searches/ visualizations/dashboards only. OK, this works, but now i need to provide same option for machine learning jobs list. And here is the problem. How can i do this? There is no dedicated index in Kibana, that i can to defined for each Kibana instance.  
Is exists some workaround for this use case?  
(Kibana version 6.2.2)

Thank a lot

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 20, 2018, 8:48pm UTC](https://discuss.elastic.co/t/how-to-separate-machine-learning-jobs-in-kibana-per-user/124756/2 "2018-03-20T20:48:05Z")

</div>

@Stacey_Gammon any inputs on this ?

---

<div class="post-metadata">

**Author:** ![sophie\_chang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sophie_chang/32/18008_2.png) [@sophie\_chang](https://discuss.elastic.co/u/sophie_chang)\
**Post date:** [March 20, 2018, 10:39pm UTC](https://discuss.elastic.co/t/how-to-separate-machine-learning-jobs-in-kibana-per-user/124756/3 "2018-03-20T22:39:41Z")

</div>

Hi

The ability to restrict access to specific Machine Learning jobs is something that exists on our roadmap, however is not available out of the box today.

In the meantime, it is possible to restrict access to the ML results indices. When you create a job you can specify for it to use a dedicated index per job. This is a UI setting in the Advanced section of the job wizards.

Alternatively, if you are comfortable editing the JSON when creating a job or using the API, then all jobs for user-grp1 can share the same user-grp1 results index and all jobs for user-grp2 can share the same user-grp2 results index. This can be set using `results_index_name`.

You can then assign roles to user-grp1 and user-grp2 that only allow them to see their respective indices. (Note, if `result_index_name` is set to `user-grp1` then the underlying index name will be `.ml-anomalies-custom-user-grp1`. )

The custom roles need to have:

- The `monitor_ml` cluster privilege (or `manage_ml` if you want users to be able to create their own jobs)
- Index read privilege on the raw data indices, used by each group
- Index read privilege on the `.ml-notifications` index
- Index read privilege on the appropriate results index, say `.ml-anomalies-custom-user-grp1`.

This does not prevent the two groups of users from seeing each others jobs in the job list, but it will prevent them from viewing the results of each others jobs.

Alternatively, with our next release (6.3) we will be supporting cross cluster search. Job separation could be achieved by creating separate ML clusters.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 30, 2018, 10:21pm UTC](https://discuss.elastic.co/t/how-to-separate-machine-learning-jobs-in-kibana-per-user/124756/4 "2018-10-30T22:21:31Z")

</div>


