You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Ramachandran (Jira)" <ji...@apache.org> on 2023/02/06 13:54:00 UTC

[jira] [Commented] (RANGER-4056) Not able to attach a user to a group while creating it from service/xusers/users endpoint.

    [ https://issues.apache.org/jira/browse/RANGER-4056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17684685#comment-17684685 ] 

Ramachandran commented on RANGER-4056:
--------------------------------------

[~kundan.jha]  

I could not succeed to reproduce this issue.

Can you please update the ticket with the Ranger version so we can able to reproduce this issue with steps and screenshots if possible?

 

> Not able to attach a user to a group while creating it from service/xusers/users endpoint.
> ------------------------------------------------------------------------------------------
>
>                 Key: RANGER-4056
>                 URL: https://issues.apache.org/jira/browse/RANGER-4056
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Kundan Kumar Jha
>            Assignee: Ramachandran
>            Priority: Major
>
> Problem statement:
> While creating a user from the service/xusers/users its not attaching the group in the groupNameList.
> Steps to reproduce:
> Create user by doing post request on service/xusers/users endpoint with paylload having "public" as group in it.
> Payload:
> { "name":"temp_user_abc_123", "firstName":"user1", "lastName": "user1", "loginId": "user1", "emailAddress" : null, "description" : "user1 desc", "password" : "user1Pass@123", "groupIdList":[1], "groupNameList":["public"], "status":1, "isVisible":1, "userRoleList": [ "ROLE_USER" ], "userSource": 0 }
>  
> Response:
> {     "id": 321,     "createDate": "2023-01-17T06:18:58Z",     "updateDate": "2023-01-17T06:18:58Z",     "owner": "Admin",     "updatedBy": "Admin",     "name": "temp_user_abc_123",     "description": "user1 desc",     "groupIdList": [],     "groupNameList": [],     "status": 0,     "isVisible": 1,     "userSource": 0,     "userRoleList": [         "ROLE_USER"     ] }
>  
> In the payload we have provided the "public" as group in groupNameList but in the response the groupNameList is empty.



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