You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Pradeep Agrawal (JIRA)" <ji...@apache.org> on 2019/03/19 05:23:00 UTC
[jira] [Created] (RANGER-2373) User creation POST and PUT response
not showing groupIdList and groupNameList with expected data
Pradeep Agrawal created RANGER-2373:
---------------------------------------
Summary: User creation POST and PUT response not showing groupIdList and groupNameList with expected data
Key: RANGER-2373
URL: https://issues.apache.org/jira/browse/RANGER-2373
Project: Ranger
Issue Type: Bug
Components: Ranger
Affects Versions: 1.2.0, 1.1.0, 1.0.0, 2.0.0
Reporter: Pradeep Agrawal
Assignee: Pradeep Agrawal
Fix For: 2.0.0
Used below POST data for user creation using request url - /service/xusers/secure/users
{noformat}
{
"name": "testuser01",
"password": "testuser01",
"firstName": "testuser01",
"lastName": "",
"emailAddress": "",
"userRoleList": ["ROLE_USER"],
"groupIdList": [2],
"status": 1
}
{noformat}
POST repsonse is,
{code}
{"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"]}
{code}
For updating, the user used below PUT data
{noformat}
{
"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"
}
{noformat}
PUT response
{code}
{"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"]}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)