# Set roles priviliges anonymous access kibana

**URL:** <https://discuss.elastic.co/t/set-roles-priviliges-anonymous-access-kibana/239454>\
**Category:** Kibana\
**Created:** [July 1, 2020, 9:57am UTC](https://discuss.elastic.co/t/set-roles-priviliges-anonymous-access-kibana/239454 "2020-07-01T09:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![igarci](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@igarci](https://discuss.elastic.co/u/igarci)\
**Post date:** [July 1, 2020, 9:57am UTC](https://discuss.elastic.co/t/set-roles-priviliges-anonymous-access-kibana/239454/1 "2020-07-01T09:57:08Z")

</div>

Hello  
I have kibana 7.2 and basic license

I am trying to hide or not allow any user to access some space, but there is no documentation to do it.

I just want to create a user who can access to different workspaces with different privileges.  
For example:

user administrator can access and view all workspaces with all privileges  
the user employee just can access and view a workspace called employee that only allows reading data from dashboard, visualize and discover

I solved my problem.

It was because I created an anonymous access in elastichsearch.yml

This could not allow me to be privileged for roles.

Now if I keep this out when I create an elastichsearch request it asks me for username and password.  
Is there a way to have both? I mean, you can create different roles with different privileges and elastichssearch doesn't ask for username and password or can create a anonymous access without this issues

Thank you

---

<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:** [July 29, 2020, 9:57am UTC](https://discuss.elastic.co/t/set-roles-priviliges-anonymous-access-kibana/239454/2 "2020-07-29T09:57:14Z")

</div>

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