DHIS-2 Developer guide : Using API's

Sir,

I want to access current user organization unit and their hierarchy as well.

Means From that level to last level .

level 1 to level 5 of current org unit.

Thanks.

May be this works for you: /api/me?fields=id,name,organisationUnits[id,name,level,ancestors[id,name,level]]

Harsh

ยทยทยท

On 21 August 2017 at 10:25, Omer Butt omerbutt2521@gmail.com wrote:

Sir,

I want to access current user organization unit and their hierarchy as well.

Means From that level to last level .

level 1 to level 5 of current org unit.

Thanks.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp