Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19063

GET /enterprise/admin/users/{userId} returns 'null' for "groups" and "primaryGroup"

    Details

    • Bug Priority:
      Category 1
    • ACT Numbers:

      00946926

      Description

      Steps to reproduce
      1. Create two groups: 'Test Group' and 'Primary Group'
      2. Create a user 'M' and add to both groups
      3. Make 'Primary Group' the primary group for the user
      4. In Activiti API explorer or Postman run
      GET /enterprise/admin/users/{userId} with the user's userId.

      Expected Behaviour
      All existing parameters should be returned, e.g:

      Response Body

      {{{}}
      {{   "id": 1001,}}
      {{   "firstName": "M",}}
      {{   "lastName": "M",}}
      {{   "email": "m@m.com",}}
      {{   "externalId": null,}}
      {{   "company": null,}}
      {{   "pictureId": null,}}
      {{   "fullname": "M M",}}
      {{   "password": null,}}
      {{   "type": "enterprise",}}
      {{   "status": "active",}}
      {{   "created": "2017-12-28T11:09:27.144+0000",}}
      {{   "lastUpdate": "2017-12-28T11:12:04.012+0000",}}
      {{   "tenantId": 1,}}
      {{   "latestSyncTimeStamp": null,}}
      {{   "groups": "Test group", "Primary Group"}}
      {{   "capabilities": null,}}
      {{   "apps": [],}}
      {{   "primaryGroup": "Primary Group",}}
      {{   "tenantPictureId": null,}}
      {{   "tenantName": null}}
      {{ }}}

      Observed Behaviour
      "groups" and "primaryGroups" are returning null values, when there are values stored for those parameters in the database.

      Response Body

      {{{}}
      {{   "id": 1001,}}
      {{   "firstName": "M",}}
      {{   "lastName": "M",}}
      {{   "email": "m@m.com",}}
      {{   "externalId": null,}}
      {{   "company": null,}}
      {{   "pictureId": null,}}
      {{   "fullname": "M M",}}
      {{   "password": null,}}
      {{   "type": "enterprise",}}
      {{   "status": "active",}}
      {{   "created": "2017-12-28T11:09:27.144+0000",}}
      {{   "lastUpdate": "2017-12-28T11:12:04.012+0000",}}
      {{   "tenantId": 1,}}
      {{   "latestSyncTimeStamp": null,}}
      {{   "groups": null,}}
      {{   "capabilities": null,}}
      {{   "apps": [],}}
      {{   "primaryGroup": null,}}
      {{   "tenantPictureId": null,}}
      {{   "tenantName": null}}
      {{ }}}

        Attachments

          Activity

            People

            • Assignee:
              closedbugs Closed Bugs
              Reporter:
              dkitsantonis Despina Kitsantonis [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: