- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
REST api to fetch user/group information from Ranger
- Labels:
-
Apache Ranger
Created 07-18-2016 02:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Is there any REST api available to fetch user/group information from Ranger?
Created 07-18-2016 02:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
