Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
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.