Created 02-13-2017 03:01 AM
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
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
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
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
Can you please share the REST API Command which you are using to fetch the groups?
Created 03-09-2017 02:23 PM
Thanks a lot. This helped a lot.