# Security error when create new role with field\_security

**URL:** https://discuss.elastic.co/t/security-error-when-create-new-role-with-field-security/258082
**Category:** Kibana
**Tags:** elastic-stack-monitoring, elastic-stack-security
**Created:** [December 9, 2020, 7:03am UTC](https://discuss.elastic.co/t/security-error-when-create-new-role-with-field-security/258082 "2020-12-09T07:03:30Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Mikel\_U](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikel_u/32/79306_2.png) [@Mikel\_U](https://discuss.elastic.co/u/Mikel_U)
#### Post date: [December 9, 2020, 7:58am UTC](https://discuss.elastic.co/t/security-error-when-create-new-role-with-field-security/258082/2 "2020-12-09T07:58:54Z")

</div>

Hello,

You have a similar issue here:

> [@Filed Security For Gold Membership](https://discuss.elastic.co/t/filed-security-for-gold-membership/171951):
>
> Hi Team, I want to provide the field level security , but when i am creating the role with below POST API call , POST /\_xpack/security/role/offshoreRole { "indices": [{ "names" : ["logstash-",".kibana"], "privileges" : ["read"], "field\_security" : { "grant" : ["\*"], "except": ["abc","xyz"] } } ] } I am getting { "error": { "root\_cause": [{ "type": "security\_exception", "reason": "current license is non-compliant for [field and document level security]", "license.ex…

I hope it will help.

---

_[View the full topic](https://discuss.elastic.co/t/security-error-when-create-new-role-with-field-security/258082)._
