# Trying to create user in elastic but getting error

**URL:** https://discuss.elastic.co/t/trying-to-create-user-in-elastic-but-getting-error/208425
**Category:** Elasticsearch
**Created:** [November 19, 2019, 5:09am UTC](https://discuss.elastic.co/t/trying-to-create-user-in-elastic-but-getting-error/208425 "2019-11-19T05:09:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)
#### Post date: [November 19, 2019, 5:09am UTC](https://discuss.elastic.co/t/trying-to-create-user-in-elastic-but-getting-error/208425/1 "2019-11-19T05:09:12Z")

</div>

> Error saving user: [cluster\_block\_exception] index [.security-7] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];

seems there is a block on one of the index (system related) not sure how to lift . tried following and restarted the service . but not helping !

PUT \_cluster/settings  
{  
"transient": {  
"cluster.routing.allocation.disk.watermark.low": "100gb",  
"cluster.routing.allocation.disk.watermark.high": "50gb",  
"cluster.routing.allocation.disk.watermark.flood\_stage": "10gb",  
"cluster.info.update.interval": "1m"  
}  
}

---

<div class="post-metadata">

### Author: ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)
#### Post date: [November 19, 2019, 10:50am UTC](https://discuss.elastic.co/t/trying-to-create-user-in-elastic-but-getting-error/208425/2 "2019-11-19T10:50:02Z")

</div>

it is solved .security-7 is the inex which created the problem , it got locked. once the log was removed ,

> PUT /.security-7/\_settings  
> {  
> "index.blocks.read\_only\_allow\_delete": null  
> }

the above code did the trick , thanks to elastic IRC

---

<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: [December 17, 2019, 10:50am UTC](https://discuss.elastic.co/t/trying-to-create-user-in-elastic-but-getting-error/208425/3 "2019-12-17T10:50:03Z")

</div>

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