How to Manage Users and Security Policies via Ranger API.
For this article let’s take the supposition that we have a MDM Software handling the enterprise organization.
When we add/change an item in a MDM, it goes throw a workflow (validation, dedup, etc…).
For synchronizing in real-time to Ranger “Users and Policies Management” the last action on the workflow must be publishing to a broker the information, that can be a JMS based broker(AMQ, RabbitMQ etc ..) or Kafka.
Putting the message into a broker gives you the safety of never losing the event.We use HDF to consume, built the payload and call Ranger API.

List of hidden Ranger useful API's.
To invoke the API's
curl -u admin:admin -v -i -s -X POST -H "Accept: application/json" -H "Content-Type: application/json" curl -u admin:admin -v -i -s -X GET curl -u admin:admin -v -i -s -X DELETE http://xxx:6080/service/xusers/secure/users/$ID_USER
Create a user
https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Service+Definition%2C+Service+and+Policy+Management
Others useful API's
Get a particular group by name
@srinivasp as this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.
Regards,
Vidya

