[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17609457#comment-17609457 ]
Ramachandran commented on RANGER-3010: -------------------------------------- Added the new APIs which support for roleName instead of roleId . PublicAPIsv2: /api/roles/name/\{name}/addUsersAndGroups /api/roles//name/\{name}/removeUsersAndGroups /api/roles/name/\{name}/removeAdminFromUsersAndGroups RoleREST: /roles/roles/name/\{name}/addUsersAndGroups /roles/roles/name/\{name}/removeUsersAndGroups /roles/roles/name/\{name}/removeAdminFromUsersAndGroups As well as added the QueryParam annotation as part of the Rest API contract for the below API's PublicAPIsv2: /api/roles/name/\{name}/addUsersAndGroups /api/roles/name/\{name}/removeUsersAndGroups /api/roles/name/\{name}/removeAdminFromUsersAndGroups /api/roles/\{id}/addUsersAndGroups /api/roles/\{id}/removeUsersAndGroups /api/roles/\{id}/removeAdminFromUsersAndGroups RoleREST: /roles/roles/\{id}/addUsersAndGroups /roles/roles/\{id}/removeUsersAndGroups /roles/roles/\{id}/removeAdminFromUsersAndGroups /roles/roles/name/\{name}/addUsersAndGroups /roles/roles/name/\{name}/removeUsersAndGroups /roles/roles/name/\{name}/removeAdminFromUsersAndGroups The review is available here: [https://reviews.apache.org/r/74141/] cc >> [~madhan] [~vel] > Rest API 'addUsersAndGroups' issue > ---------------------------------- > > Key: RANGER-3010 > URL: https://issues.apache.org/jira/browse/RANGER-3010 > Project: Ranger > Issue Type: Improvement > Components: Ranger > Reporter: leo sun > Assignee: Ramachandran > Priority: Major > Time Spent: 0.5h > Remaining Estimate: 0h > > I want to use Ranger API functions - addUsersAndGroups & removeUsersAndGroups > to manage users and groups of role. But official reference don't have > suitable example for these two APIs. And my all attempts failed. > Another point: For example, I found the input type of addUsersAndGroups is > Boolean on official web, but the input of the implement function is two > string list and one boolean. > I don't know how to use it. Could you help me with this? [~abhayk] -- This message was sent by Atlassian Jira (v8.20.10#820010)