getting list of datasets

Hello !

I’ve seen that DHIS2 call this two url in order to retrieve and match the list of datasets with the countries.

https://DHIS2URL/dhis-web-dataentry/getMetaData.action?_=A13SIZEDNUMBER

https://DHIS2URL/dhis-web-dataentry/getDataSetAssociations.action?_=THESAME13SIZEDNUMBER+1

My problem is that some users don’t get all the datasets that are shared with them. (The superusers can get these dataset for the same orgUnits). The dataset with which I have problems has a “default form type”. The others are “custom”. Could be this ?

The server don’t say anything.

Thank you !

Ramón.

Update: Only giving the “ALL” authoritie to the user fix the issue… :frowning:

···

2017-12-11 13:25 GMT+01:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:

Hello !

I’ve seen that DHIS2 call this two url in order to retrieve and match the list of datasets with the countries.

https://DHIS2URL/dhis-web-dataentry/getMetaData.action?_=A13SIZEDNUMBER

https://DHIS2URL/dhis-web-dataentry/getDataSetAssociations.action?_=THESAME13SIZEDNUMBER+1

My problem is that some users don’t get all the datasets that are shared with them. (The superusers can get these dataset for the same orgUnits). The dataset with which I have problems has a “default form type”. The others are “custom”. Could be this ?

The server don’t say anything.

Thank you !

Ramón.

Hello Dave,

Thank you for your prompt answer. Unfortunately, this time, this is not the case :frowning: The user has already the role asigned for this dataset and I can verify he can see it when going to the url /api/dataSets.

Thank you for your idea anyway !

···

2017-12-11 15:11 GMT+01:00 David Palmer David.Palmer@mariestopes.org:

Hi Ramon, for a user to see a dataset please note there are 2 places this has to be done. A user must be assigned both a user group for which the dataset is shared to, but also in a user role for which the dataset has been added to.

You mention sharing below, but not adding the dataset to the user role? This has caught us out a few times – check the datasets are selected in the user role.

Cheers,

Dave

From: Dhis2-devs [mailto:dhis2-devs-bounces+david.palmer=mariestopes.org.uk@lists.launchpad.net] On Behalf Of Ramón José Jiménez Pomareta

Sent: 11 December 2017 13:52

To: Ramón José Jiménez Pomareta

Cc: DHIS 2 developers

Subject: Re: [Dhis2-devs] getting list of datasets

Update: Only giving the “ALL” authoritie to the user fix the issue… :frowning:

2017-12-11 13:25 GMT+01:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:

Hello !

I’ve seen that DHIS2 call this two url in order to retrieve and match the list of datasets with the countries.

https://DHIS2URL/dhis-web-dataentry/getMetaData.action?_=A13SIZEDNUMBER

https://DHIS2URL/dhis-web-dataentry/getDataSetAssociations.action?_=THESAME13SIZEDNUMBER+1

My problem is that some users don’t get all the datasets that are shared with them. (The superusers can get these dataset for the same orgUnits). The dataset with which I have problems has a “default form type”. The others are “custom”. Could be this ?

The server don’t say anything.

Thank you !

Ramón.

This Email from Marie Stopes International and any attachments may contain information which is privileged or confidential. It is meant only for the individual(s) or entity named above. If you are not the intended recipient(s) of this Email or any part of it please notify the sender immediately on receipt and delete it from your system. Any opinion or other information in this email or its attachments that does not relate to the business of Marie Stopes International is personal to the sender and is not given or endorsed by Marie Stopes International.

Hi Ramon

The endpoint /api/dataSets is not filtered by the user, if you want to see what the user can really access you would have to use /api/me

Maybe using something like this:

https://play.dhis2.org/demo/api/28/me.json?fields=id,displayName,userCredentials[userRoles[dataSets[id,displayName]]]

···

On Mon, Dec 11, 2017 at 11:08 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:

Hello Dave,

Thank you for your prompt answer. Unfortunately, this time, this is not the case :frowning: The user has already the role asigned for this dataset and I can verify he can see it when going to the url /api/dataSets.

Thank you for your idea anyway !


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

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

Hi Ramon, for a user to see a dataset please note there are 2 places this has to be done. A user must be assigned both a user group for which the dataset is shared to, but also in a user role for which the dataset has been added to.

You mention sharing below, but not adding the dataset to the user role? This has caught us out a few times – check the datasets are selected in the user role.

Cheers,

Dave

From: Dhis2-devs [mailto:dhis2-devs-bounces+david.palmer=mariestopes.org.uk@lists.launchpad.net] On Behalf Of Ramón José Jiménez Pomareta

Sent: 11 December 2017 13:52

To: Ramón José Jiménez Pomareta

Cc: DHIS 2 developers

Subject: Re: [Dhis2-devs] getting list of datasets

Update: Only giving the “ALL” authoritie to the user fix the issue… :frowning:

2017-12-11 13:25 GMT+01:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:

Hello !

I’ve seen that DHIS2 call this two url in order to retrieve and match the list of datasets with the countries.

https://DHIS2URL/dhis-web-dataentry/getMetaData.action?_=A13SIZEDNUMBER

https://DHIS2URL/dhis-web-dataentry/getDataSetAssociations.action?_=THESAME13SIZEDNUMBER+1

My problem is that some users don’t get all the datasets that are shared with them. (The superusers can get these dataset for the same orgUnits). The dataset with which I have problems has a “default form type”. The others are “custom”. Could be this ?

The server don’t say anything.

Thank you !

Ramón.

This Email from Marie Stopes International and any attachments may contain information which is privileged or confidential. It is meant only for the individual(s) or entity named above. If you are not the intended recipient(s) of this Email or any part of it please notify the sender immediately on receipt and delete it from your system. Any opinion or other information in this email or its attachments that does not relate to the business of Marie Stopes International is personal to the sender and is not given or endorsed by Marie Stopes International.

2017-12-11 15:11 GMT+01:00 David Palmer David.Palmer@mariestopes.org: