Add a user to role-mapping

Hi All,
We are trying to create user-role mapping using the open-distro api's.

PATCH _opendistro/_security/api/rolesmapping/<role>
[
  {
    "op": "add", "path": "/users", "value": ["myuser"]
  }
]

But we are getting the below error while trying to execute this command,

{"statusCode":400,"error":"Bad Request","message":"[request query.method]: Method must be one of, case insensitive ['HEAD', 'GET', 'POST', 'PUT', 'DELETE']. Received 'PATCH'."}

Can you please advise.

Regards
Lokesh V

Hi @lokeshv1989!

OpenDistro is using a fork of Elastic products and therefore we do not have details on the issues specific to it. I would recommend opening an issue at the OpenDistro forum.

Thank you for taking out time to reply to me.
I will reach out to opendistro forum.
Regards
Lokesh V

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