Deleting user from roles mapping

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:
I’m in the process of doing some automation, and I’d like to delete some users from roles mapping.

I’m tring with the following (and it’s variuos combunations), I get that the "‘ROLENAME updated’, but no change, the user is still there, in this example, “myuser3”.

PATCH /_plugins/_security/api/rolesmapping/ROLENAME
        "op": "remove",
        "path": [
        "value": "myuser3"

Could somebody help me with this please? Am I missing something?


@andraspavelbaystream Did you configure this option in opensearch.yml? true

Hi Pablo,

I didn’t have it configured. I enabled it now, restarted the services, but still no change, the users are not deleted.

Do you have any other suggestion?

Thank you!