# Index level permissioning using searchguard

**URL:** <https://discuss.elastic.co/t/index-level-permissioning-using-searchguard/92802>\
**Category:** Elasticsearch\
**Created:** [July 12, 2017, 12:20pm UTC](https://discuss.elastic.co/t/index-level-permissioning-using-searchguard/92802 "2017-07-12T12:20:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh\_Janagam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramesh_janagam/32/11718_2.png) [@Ramesh\_Janagam](https://discuss.elastic.co/u/Ramesh_Janagam)\
**Post date:** [July 12, 2017, 12:20pm UTC](https://discuss.elastic.co/t/index-level-permissioning-using-searchguard/92802/1 "2017-07-12T12:20:49Z")

</div>

Hi All,

I am testing community version of searchguard5. I have setup permissions and visualizations as below:

setup:  
UserA has permission only for index=data-full-\*  
UserB has permission only index=data-partial-\*

Now I have created generic visualizations with index-pattern=data-\*.

problem:  
Now I am trying access data using UserA but no data is being displayed but showing error userA doesn't have access. This is because UserA doesn't have permission for data-partial\*

Similarly UserB also doesn't see any data as he doen't have access to data-full\*

Help Needed:  
Is there any way to access all permissioned data with generic index data-\* instead throwing error and not displaying content at all?

Any other solution please?

[I am trying another way now meanwhile:  
have only one index=data-\*  
create alias data-alias1-\* which is filtered alias

now I will give permissions userA to index and userb to alias. Now sure if this work if anyone explore in this space. Thanks for your help in advance. ]

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [July 12, 2017, 12:35pm UTC](https://discuss.elastic.co/t/index-level-permissioning-using-searchguard/92802/2 "2017-07-12T12:35:00Z")

</div>

You may have better results finding help in searchguard's forums/github page/email list, or whatever they provide. SearchGuard is not in any way affiliated with [https://elastic.co](https://elastic.co), or these forums.

---

<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:** [August 9, 2017, 12:35pm UTC](https://discuss.elastic.co/t/index-level-permissioning-using-searchguard/92802/3 "2017-08-09T12:35:03Z")

</div>

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