Description
Problem Statement:
While creating a user from UI its firstName is a compulsory field but while creating it through making POST request on /xuser/secure/users its not a compulsory parameter.
Steps to reproduce:
Make a post request on /xuser/secure/users endpoint with following payload:
{ "name":"temp_user_abc_12345", "firstName":null, "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": 323, "createDate": "2023-01-17T06:49:12Z", "updateDate": "2023-01-17T06:49:12Z", "owner": "Admin", "updatedBy": "Admin", "name": "temp_user_abc_12345", "lastName": "user1", "password": "*****", "description": "user1 desc", "groupIdList": [ 1 ], "groupNameList": [ "public" ], "status": 1, "isVisible": 1, "userSource": 0, "userRoleList": [ "ROLE_USER" ] }
With firstName as null also the user is creating successfully.
Attachments
Attachments
Issue Links
- causes
-
RANGER-4154 Usersync fails to push users to Ranger, due to missing firstName field
- Resolved