How to remove a user from role mapping

HI Team,
we are using ELK version 7.17.10 and we have created Roles to manage our indices.

my question is if want to remove user from role mapping how do i perform by using Delete command.

Looking forward your input.

NOTE: Currently we are adding/removing the user manually in role mapping and we need to automate.

Can anyone help me on this. its very urgent requirement

Please be patient in waiting for responses to your question and refrain from pinging multiple times asking for a response or opening multiple topics for the same question. This is a community forum, it may take time for someone to reply to your question. For more information please refer to the Community Code of Conduct specifically the section "Be patient". Also, please refrain from pinging folks directly, this is a forum and anyone that participates might be able to assist you.

If you are in need of a service with an SLA that covers response times for questions then you may want to consider talking to us about a subscription.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

I don't believe you can use a DELETE call to remove a user from a role mapping.
As I am not 100% sure on your approach the following could help you;

  1. You make use of role mappings to define which roles a user gets and have multiple users listed in the mapping.

  2. You add roles directy to a local user.

In the first scenario you can use two api calls to remove the required user: first you get the current implementation which you mutate by removing the desired user(s) and then you update the role mapping with the new definition.

In the second scenario you follow the same approach by retrieving and updating but now on the user itself.

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