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