Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2373

User creation POST and PUT response not showing groupIdList and groupNameList with expected data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.1.0, 2.0.0, 1.2.0
    • 2.0.0
    • Ranger
    • None

    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

        1. RANGER-2373-2.patch
          7 kB
          Nikhil Purbhe

        Issue Links

          Activity

            People

              nikhil Nikhil Purbhe
              pradeep Pradeep Agrawal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: