# Getting cluster security error after login

**URL:** <https://discuss.elastic.co/t/getting-cluster-security-error-after-login/324463>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 1, 2023, 4:53pm UTC](https://discuss.elastic.co/t/getting-cluster-security-error-after-login/324463 "2023-02-01T16:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamal\_Khandelwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kamal_khandelwal/32/116658_2.png) [@Kamal\_Khandelwal](https://discuss.elastic.co/u/Kamal_Khandelwal)\
**Post date:** [February 1, 2023, 4:53pm UTC](https://discuss.elastic.co/t/getting-cluster-security-error-after-login/324463/1 "2023-02-01T16:53:52Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/1/c/1c76ffeab79accf2ce779b8007e30132724ccaaf.png)  
getting this error whenever i try to login, can someone please help me

action [cluster:monitor/main] is unauthorized for user [kamal] with effective roles (assigned roles [monitoring,network] were not found), this action is granted by the cluster privileges [monitor,manage,all]"

---

<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:** [February 5, 2023, 10:23pm UTC](https://discuss.elastic.co/t/getting-cluster-security-error-after-login/324463/2 "2023-02-05T22:23:53Z")

</div>

Welcome to our community! 😃  
Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

When you created the user did you give it the `monitoring,network` roles?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [February 6, 2023, 6:05am UTC](https://discuss.elastic.co/t/getting-cluster-security-error-after-login/324463/3 "2023-02-06T06:05:03Z")

</div>

It looks like you have assigned the `monitoring` and `network` roles to your user, but those roles don't actually exist, so the user has no permissions.

---

<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 6, 2023, 6:11am UTC](https://discuss.elastic.co/t/getting-cluster-security-error-after-login/324463/5 "2023-03-06T06:11:49Z")

</div>

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