Description
Used below POST data for user creation using request url - /service/xusers/secure/users
{ "name": "testuser01", "password": "testuser01", "firstName": "testuser01", "lastName": "", "emailAddress": "", "userRoleList": ["ROLE_USER"], "groupIdList": [2], "status": 1 }
POST repsonse is,
{"id":20,"createDate":"2018-10-11T13:03:54Z","updateDate":"2018-10-11T13:03:54Z","owner":"Admin","updatedBy":"Admin","name":"testuser01","firstName":"testuser01","lastName":"","password":"*****","description":"testuser01","groupIdList":[],"groupNameList":[],"status":1,"isVisible":1,"userSource":0,"userRoleList":["ROLE_USER"]}
For updating, the user used below PUT data
{ "name": "testuser01", "firstName": "testuser01", "lastName": "", "emailAddress": "", "userRoleList": ["ROLE_USER"], "groupIdList": [2, 9], "groupNameList": ["hadoop", "mapred"], "status": 1, "description": "testuser01", "isVisible": 1, "userSource": 0, "id":20, "owner": "Admin" }
PUT response
{"id":20,"createDate":"2018-10-11T13:03:54Z","updateDate":"2018-10-11T14:09:34Z","owner":"Admin","updatedBy":"Admin","name":"testuser01","firstName":"testuser01","lastName":"","password":"*****","description":"testuser01","groupIdList":[2,9],"groupNameList":["hadoop"],"status":1,"isVisible":1,"userSource":0,"userRoleList":["ROLE_USER"]}
Attachments
Attachments
Issue Links
- links to