- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Add group in Ranger using REST API
- Labels:
-
Apache Ranger
Created ‎02-13-2017 03:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not finding any way to add new group to Ranger using REST API. It is available in GUI but I need REST API. Please help.
I am able to list the groups but not able to create new one.
Created ‎02-13-2017 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
REST API to create user group is "/service/xusers/secure/groups", Please refer to the below example on the usage.
curl -v -u '<username>:<password>' 'http://<ranger_host_address>:<ranger_port>/service/xusers/secure/groups' -H 'X-XSRF-HEADER: ""' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' --data-binary '{"name":"temporary-group","description":"test"}'
The request payload contains the user group name and description info.
Created ‎02-13-2017 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
REST API to create user group is "/service/xusers/secure/groups", Please refer to the below example on the usage.
curl -v -u '<username>:<password>' 'http://<ranger_host_address>:<ranger_port>/service/xusers/secure/groups' -H 'X-XSRF-HEADER: ""' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' --data-binary '{"name":"temporary-group","description":"test"}'
The request payload contains the user group name and description info.
Created ‎09-16-2019 12:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a rest API to add a user to this group. I have a REST API to create a user now I want to add him to this group and to a new group. How can i do that using "userName".
Created ‎02-16-2017 03:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please share the REST API Command which you are using to fetch the groups?
Created ‎03-09-2017 02:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot. This helped a lot.
