[
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 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
RangerRole contains the users and groups list 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.
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, so we are RangerRole contains the users and groups list 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 accept users and groups list,
> and a way 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 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
> RangerRole contains the users and groups list 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)