Api not showing orgunits after passing userOnly Parameter

Hello Team. I am having an issue with the dhis2 api.

I am not able to retrieve orgunits and their descendants by based on user who is logged in.

Here is the query I am using:
api/organisationUnits.json?page=2&includeChildren=true&userOnly=true

The user has admin rights but it only able to retrieve one orgunit(national level or leve 1)

Kindly assist

Hi @Adriano_Mutize

The includeChildren only applies for sub-hierarchy; for instance, organisationUnits/ImspTQPwCqd. Here’s an example on the play instance, instance/api/organisationUnits/ImspTQPwCqd.json?&userOnly=true&includeChildren=false

I hope this helps! You’re welcome to explain more about the use case to see if there are other possible solutions. Thanks!