[ 
https://issues.apache.org/jira/browse/RANGER-3925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anand Nadar updated RANGER-3925:
--------------------------------
    Description: 
Enhancing /roles/\{id}/addUsersAndGroups api to add/update/replace Group to a 
Role.
 * The current api only replaces groups  of an existing role with list of 
groups coming from API. There need to be a mode to add/update Role groups as 
well. 
API will add new role user/group if it does not exists and will update if it 
exists for the role.

  was:
Enhancing /roles/\{id}/addUsersAndGroups api to accept users and groups list, 
and a way to add/update/replace Group to a Role.
 * The existing /roles/\{id}/addUsersAndGroups api does not accept users and 
groups list which also had isAdmin property of each user/group, so we are now 
using RangerRole which contains the users and groups list with the isAdmin flag 
for each user/group and can be sent in the request payload. Example : 
\{"users": [ {"name": "thor","isAdmin": false}], "groups": [
{"name": "asgard","isAdmin": false}
]} 

 * The current api only replaces groups  of an existing role with list of 
groups coming from API. This will be modified to add/update Role groups. API 
will add new role group if not exists in ranger DB. If group exists it will 
update role group.


> Enhancing /roles/{id}/addUsersAndGroups api to add/update/replace Group to a 
> Role.
> ----------------------------------------------------------------------------------
>
>                 Key: RANGER-3925
>                 URL: https://issues.apache.org/jira/browse/RANGER-3925
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin, Ranger
>            Reporter: Anand Nadar
>            Priority: Major
>             Fix For: 2.4.0
>
>
> Enhancing /roles/\{id}/addUsersAndGroups api to add/update/replace Group to a 
> Role.
>  * The current api only replaces groups  of an existing role with list of 
> groups coming from API. There need to be a mode to add/update Role groups as 
> well. 
> API will add new role user/group if it does not exists and will update if it 
> exists for the role.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to