dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #46172
[Bug 1607740] Re: userRoles[id] never returns value in the User API calls
Hi
There is nothing called userRoles on the user object, please use:
https://play.dhis2.org/demo/api/users.json?fields=id,displayName,userCredentials[userRoles[id]]
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
References