# Role not get created

**URL:** https://discuss.elastic.co/t/role-not-get-created/227668
**Category:** Elasticsearch
**Created:** [April 12, 2020, 11:34am UTC](https://discuss.elastic.co/t/role-not-get-created/227668 "2020-04-12T11:34:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Arpit\_Aggarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arpit_aggarwal/32/66177_2.png) [@Arpit\_Aggarwal](https://discuss.elastic.co/u/Arpit_Aggarwal)
#### Post date: [April 12, 2020, 11:34am UTC](https://discuss.elastic.co/t/role-not-get-created/227668/1 "2020-04-12T11:34:27Z")

</div>

I am using Elasticsearch 7.6.1 and getting below error while creating role.

{  
"error": {  
"root\_cause": [  
{  
"type": "security\_exception",  
"reason": " **current license is non-compliant for [field and document level security]",**  
\*\* "license.expired.feature": "field and document level security"\*\*  
}  
],  
"type": "security\_exception",  
"reason": "current license is non-compliant for [field and document level security]",  
"license.expired.feature": "field and document level security"  
},  
"status": 403  
}

And Elasticsearch license is Basic as printed in logs.  
[node-1] license [9409481e-a7e9-4c8b-ba9a-e2336fe82394] mode [basic] - valid

[2020-04-12T16:55:54,684][INFO][o.e.x.s.s.SecurityStatusChangeListener] [node-1] Active license is now [BASIC]; Security is enabled

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 12, 2020, 11:47am UTC](https://discuss.elastic.co/t/role-not-get-created/227668/2 "2020-04-12T11:47:55Z")

</div>

As per the [subscriptions page](https://www.elastic.co/subscriptions) field- and document-level security does require a commercial license and is not available at the Basic level.

---

<div class="post-metadata">

### Author: ![Arpit\_Aggarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arpit_aggarwal/32/66177_2.png) [@Arpit\_Aggarwal](https://discuss.elastic.co/u/Arpit_Aggarwal)
#### Post date: [April 12, 2020, 12:08pm UTC](https://discuss.elastic.co/t/role-not-get-created/227668/3 "2020-04-12T12:08:33Z")

</div>

Ok thanks for your instant reply.

---

<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: [May 10, 2020, 12:08pm UTC](https://discuss.elastic.co/t/role-not-get-created/227668/4 "2020-05-10T12:08:43Z")

</div>

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