Created 07-18-2016 02:33 PM
Hi
Is there any REST api available to fetch user/group information from Ranger?
Created 07-18-2016 02:50 PM
You can use the following
curl -u <username>:<password> -X GET http://<ranger host:port>/service/xusers/users
Created 07-18-2016 02:50 PM
You can use the following
curl -u <username>:<password> -X GET http://<ranger host:port>/service/xusers/users
Created 07-18-2016 03:00 PM
There are, but it seems that they are for Ranger internal use. There aren't any public APIs. Here is the public API documentation for Ranger 0.5. You can also take a look at the following classes if you're interested:
org.apache.ranger.rest.PublicAPIs org.apache.ranger.rest.PublicAPIsv2
The UI is hitting some user and group endpoints, but it doesn't seem as if there is documentation around them. I wouldn't rely on them.