# Kibana with Security - All users in user\_search.base\_dn can view Kibana?

**URL:** <https://discuss.elastic.co/t/kibana-with-security-all-users-in-user-search-base-dn-can-view-kibana/75551>\
**Category:** Kibana\
**Created:** [February 17, 2017, 6:38pm UTC](https://discuss.elastic.co/t/kibana-with-security-all-users-in-user-search-base-dn-can-view-kibana/75551 "2017-02-17T18:38:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinKuspa](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@JustinKuspa](https://discuss.elastic.co/u/JustinKuspa)\
**Post date:** [February 17, 2017, 6:38pm UTC](https://discuss.elastic.co/t/kibana-with-security-all-users-in-user-search-base-dn-can-view-kibana/75551/1 "2017-02-17T18:38:42Z")

</div>

When setting up Kibana 5.1.1 with X-Pack Security, is there a way to restrict access to the main kibana page?  
When testing, it appears that all users in the search base are able to authenticate and view the main page, even if they don't have authorization to search/monitor/etc...

Is it possible to throw an "Access Denied" error if they can authenticate, but don't have rights to perform an action, as the Monitor plugin does?

OR

Is it possible to restrict the authentication by a filter based on an AD group?

Elastic Version 5.1.1 using Security  
**role\_mapping.yml**

kibana\_user:

- "CN=analyst,OU=Groups,DC=example,DC=com"

**elasticsearch.yml**  
xpack.security.authc.realms.ldap.user\_search.base\_dn: ou=users,ou=accounts,dc=example,dc=com

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 17, 2017, 6:38pm UTC](https://discuss.elastic.co/t/kibana-with-security-all-users-in-user-search-base-dn-can-view-kibana/75551/2 "2017-03-17T18:38:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
