[
https://issues.apache.org/jira/browse/RANGER-4056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17684729#comment-17684729
]
Kundan Kumar Jha commented on RANGER-4056:
------------------------------------------
[~ramackri]
I have updated the version.
Moreover a heads-up this issue is occurring on "service/xusers/users" endpoint
and not on the secure one which is "service/xusers/secure/users". So make sure
that you are using "service/xusers/users" endpoint and not
"service/xusers/secure/users".
Regards,
[~kundan.jha]
> 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
> Affects Versions: 2.3.0
> 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)