[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17700641#comment-17700641 ] Ramachandran commented on RANGER-3010: -- create a separate ticket to address the improvement mentioned in attached document https://issues.apache.org/jira/browse/RANGER-4133 > 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 > Labels: PatchAvailable > Fix For: 3.0.0 > > Attachments: > 0001-RANGER-3010-To-support-roleName-as-part-of-Path-para.patch, Improvement > in Ranger Roles Rest API's (1).pdf > > Time Spent: 40m > 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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17700591#comment-17700591 ] Ramachandran commented on RANGER-3010: -- We have attached the proposal document which also needs to be incorporated before merging this PR [^Improvement in Ranger Roles Rest API's (1).pdf] Let me create a separate ticket to address the improvement mentioned in this document After this fix, we will add this fix on top of the improvement mentioned in this document cc >> [~madhan] > 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 > Labels: PatchAvailable > Fix For: 3.0.0 > > Attachments: > 0001-RANGER-3010-To-support-roleName-as-part-of-Path-para.patch, Improvement > in Ranger Roles Rest API's (1).pdf > > Time Spent: 40m > 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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17648659#comment-17648659 ] Ramachandran commented on RANGER-3010: -- [~mad...@apache.org] [~abhayk] [~vel] [~spolavarapu] [~pradeep] Hi All, could you Please review it.? > 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 > Labels: PatchAvailable > Fix For: 3.0.0 > > Attachments: > 0001-RANGER-3010-To-support-roleName-as-part-of-Path-para.patch > > 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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17613850#comment-17613850 ] Ramachandran commented on RANGER-3010: -- Added QueryParam annotation as part of the existing and new Rest API contract to make it clear understanding for the end users: Existing API's PublicAPIsv2: /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 New API's: 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 cc >> [~mad...@apache.org] [~vel] [~pradeep] > 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 > Attachments: 0001-RANGER-3010-Rest-API-addUsersAndGroups-issue.patch > > 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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17612168#comment-17612168 ] Ramachandran commented on RANGER-3010: -- Can you please take a look? cc >> [~mad...@apache.org] [~vel] [~pradeep] > 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 > Attachments: 0001-RANGER-3010-Rest-API-addUsersAndGroups-issue.patch > > 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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17608089#comment-17608089 ] Ramachandran commented on RANGER-3010: -- [~madhan] [~kulkabhay] i believe the users,groups will be passed as a query parameter for the below API's /api/roles/name/\{name}/addUsersAndGroups /api/roles/\{id}/removeUsersAndGroups /api/roles/\{id}/removeAdminFromUsersAndGroups like @QueryParam("users") List users, @QueryParam("groups") List groups Is this correct? > 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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17608075#comment-17608075 ] Ramachandran commented on RANGER-3010: -- I will take this task for the below rest API's: {code:java} /api/roles/name/{name}/addUsersAndGroups /api/roles/{id}/removeUsersAndGroups /api/roles/{id}/removeAdminFromUsersAndGroups {code} and add the new APIs which support for roleName instead of rolled {code:java} /api/roles/name/{name}/addUsersAndGroups /api/roles//name/{name}/removeUsersAndGroups /api/roles/name/{name}/removeAdminFromUsersAndGroup {code} s cc >> [~madhan] [~pradeep] [~kulkabhay] > 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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17604900#comment-17604900 ] Ramachandran commented on RANGER-3010: -- [~Leo Pard] As part of this commit [https://github.com/apache/ranger/commit/df35a705fe62ba76f387bb81d48940df4ad1eedb] ,@PathParam("id") got fixed > 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 >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)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17519321#comment-17519321 ] Bhavik Patel commented on RANGER-3010: -- can you please provide patch at review board : https://reviews.apache.org/dashboard/ > 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 >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.1#820001)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17501925#comment-17501925 ] leo sun commented on RANGER-3010: - [~nixon] Hi Nixon, I have create a pull request of this issues. Here is the link: [https://github.com/apache/ranger/pull/135] This is the version which our company is using. > 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 >Priority: Major > Time Spent: 10m > 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.1#820001)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17500369#comment-17500369 ] Madhan Neethiraj commented on RANGER-3010: -- [~ankita] - can you please help with this? Thanks! > 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 >Priority: Major > > 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.1#820001)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17500134#comment-17500134 ] Nixon Rodrigues commented on RANGER-3010: - [~Leo Pard] where is patch ? can you contribute back and upload here if it is possible > 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 >Priority: Major > > 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.1#820001)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17500122#comment-17500122 ] leo sun commented on RANGER-3010: - This API indeed have some logical mistakes, I think. I have added patch on this part which can make it work. > 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 >Priority: Major > > 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.1#820001)
[jira] [Commented] (RANGER-3010) Rest API 'addUsersAndGroups' issue
[ https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17500072#comment-17500072 ] Nixon Rodrigues commented on RANGER-3010: - [~kulkabhay] Facing similar issue. Can you please guide how to send payload to API _*/roles/\{id}/addUsersAndGroups*_ ? cc : [~bhavikpatel], [~madhan] > 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 >Priority: Major > > 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.1#820001)