Kundan Kumar Jha created RANGER-4056:
----------------------------------------

             Summary: 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


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)

Reply via email to