# Shield user with index privileges set to 'all' unable to delete

**URL:** <https://discuss.elastic.co/t/shield-user-with-index-privileges-set-to-all-unable-to-delete/76260>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 23, 2017, 3:53pm UTC](https://discuss.elastic.co/t/shield-user-with-index-privileges-set-to-all-unable-to-delete/76260 "2017-02-23T15:53:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnythunders](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@johnnythunders](https://discuss.elastic.co/u/johnnythunders)\
**Post date:** [February 23, 2017, 3:53pm UTC](https://discuss.elastic.co/t/shield-user-with-index-privileges-set-to-all-unable-to-delete/76260/1 "2017-02-23T15:53:02Z")

</div>

Topic title sez it.  
I have a user w/ privileges set to all on a watcher index. The user is able to create, read, etc... unable to delete watches.

---

<div class="post-metadata">

**Author:** ![johnnythunders](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@johnnythunders](https://discuss.elastic.co/u/johnnythunders)\
**Post date:** [February 24, 2017, 9:09pm UTC](https://discuss.elastic.co/t/shield-user-with-index-privileges-set-to-all-unable-to-delete/76260/2 "2017-02-24T21:09:34Z")

</div>

Below is the snippet of the userinquestions roles.yml config.  
userinquestion:  
cluster:

- monitor
- cluster:admin/watcher/watch/put
- cluster:admin/watcher/watch/delete  
indices:
- names: index1-\*  
privileges:
  - read
  - view\_index\_metadata
  - indices:data/read/field\_stats
  - indices:data/read/msearch

- names: logstash-\*  
privileges:
  - view\_index\_metadata
  - read
  - indices:data/read/msearch

- names: "_watch_" \<--- we have \_watcher and .watcher indexes  
privileges:
  - all

- names: index3\*  
privileges:
  - read
  - view\_index\_metadata
  - indices:data/read/field\_stats

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [February 27, 2017, 12:21pm UTC](https://discuss.elastic.co/t/shield-user-with-index-privileges-set-to-all-unable-to-delete/76260/3 "2017-02-27T12:21:01Z")

</div>

How are you trying to delete the watch?

---

<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 27, 2017, 12:21pm UTC](https://discuss.elastic.co/t/shield-user-with-index-privileges-set-to-all-unable-to-delete/76260/4 "2017-03-27T12:21:05Z")

</div>

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