# How to restrict edit access to dashboards / visuals within a space

**URL:** <https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556>\
**Category:** Kibana\
**Created:** [October 25, 2021, 9:10am UTC](https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556 "2021-10-25T09:10:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amphagory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amphagory/32/46127_2.png) [@Amphagory](https://discuss.elastic.co/u/Amphagory)\
**Post date:** [October 25, 2021, 9:10am UTC](https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556/1 "2021-10-25T09:10:42Z")

</div>

Hello,

I have created a set of visuals within dashboard within a space.  
I do not want anyone to change these dashboards / visuals in this space.  
The user can create or change dashboards / visuals in other spaces.

Is there a way to restricted users from editing these dashboards / visuals in a certain space? Alternatively, can I "turn off" edit access to these dashboards / visuals?

Mike

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [October 25, 2021, 10:35pm UTC](https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556/2 "2021-10-25T22:35:19Z")

</div>

Absolutely. You can create a user with a role which restricts access to whichever space you want. Please take a look at this [Spaces | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/xpack-spaces.html) &  
[Security | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/xpack-security.html)

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Amphagory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amphagory/32/46127_2.png) [@Amphagory](https://discuss.elastic.co/u/Amphagory)\
**Post date:** [October 25, 2021, 10:53pm UTC](https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556/3 "2021-10-25T22:53:24Z")

</div>

I should have made it clear that the user will have access to all the spaces in the account including the space I don’t want any edits on dashboard or visuals.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 25, 2021, 11:18pm UTC](https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556/4 "2021-10-25T23:18:38Z")

</div>

Hi @Amphagory

Can you expand a bit more give us a sense what you are looking.  
Are there different Dashboards in Each Space or Each Space has its own dashboards and indices.

User A with Role Y

Space A, User A  
Access to All Dashboards  
Read / Write to all Dashboards

Space B, User A  
Access to All Dashboards  
Read / Write to all Dashboards

Space C, User A  
Access to All Dashboards  
Read Only to all Dashboards

Is that what you are asking for? Or can you give an example like this?

---

<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 26, 2021, 12:29am UTC](https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556/5 "2021-10-26T00:29:16Z")

</div>

For this approach you would need to use DLS - [Document level security | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/document-level-security.html)

---

<div class="post-metadata">

**Author:** ![Amphagory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amphagory/32/46127_2.png) [@Amphagory](https://discuss.elastic.co/u/Amphagory)\
**Post date:** [October 26, 2021, 12:36am UTC](https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556/6 "2021-10-26T00:36:25Z")

</div>

Hello @[stephenb](https://discuss.elastic.co/u/stephenb),

Your example is a valid example.

User A has access to all the spaces and indices where he can edit dashboards and visuals.

I want to create either

i) A role where User A can Read / Write to all Dashboards and visuals in space A and B. In space C, I only want User A to have read access to all dashboards and visuals.

Space A, User A  
Access to All Dashboards  
Read / Write to all Dashboards

Space B, User A  
Access to All Dashboards  
Read / Write to all Dashboards

Space C, User A  
Access to All Dashboards  
Read Only to all Dashboards

OR

ii) Limit the edit access to dashboards and visuals to say superuser only. Therefore User A can not edit these dashboards and visuals.

I hope that clears things up,

Mike

---

<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:** [November 23, 2021, 12:36am UTC](https://discuss.elastic.co/t/how-to-restrict-edit-access-to-dashboards-visuals-within-a-space/287556/7 "2021-11-23T00:36:31Z")

</div>

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