[Bug 1607740] [NEW] userRoles[id] never returns value in the User API calls

Public bug reported:

The user role parameter does not return a value when making API calls
i.e .../api/24/users.json?fields=userRoles[id]

Returns:
{"pager":{"page":1,"pageCount":1,"total":23,"pageSize":50},"users":[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}

** Affects: dhis2
     Importance: Undecided
         Status: New

** Tags: userrole

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1607740

Title:
  userRoles[id] never returns value in the User API calls

Status in DHIS:
  New

Bug description:
  The user role parameter does not return a value when making API calls
  i.e .../api/24/users.json?fields=userRoles[id]

  Returns:
  {"pager":{"page":1,"pageCount":1,"total":23,"pageSize":50},"users":[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1607740/+subscriptions

Hi

There is nothing called userRoles on the user object, please use:
DHIS 2 Demo - Sierra Leone]

In 2.25 we will validate and throw exception if you try and use a
invalid property.

** Changed in: dhis2
       Status: New => Invalid

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1607740

Title:
  userRoles[id] never returns value in the User API calls

Status in DHIS:
  Invalid

Bug description:
  The user role parameter does not return a value when making API calls
  i.e .../api/24/users.json?fields=userRoles[id]

  Returns:
  {"pager":{"page":1,"pageCount":1,"total":23,"pageSize":50},"users":[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1607740/+subscriptions