# Data Elements sharing functionality

**URL:** <https://community.dhis2.org/t/data-elements-sharing-functionality/4308>\
**Category:** Support - Assistance technique\
**Created:** [16 May 2017 13:40 UTC](https://community.dhis2.org/t/data-elements-sharing-functionality/4308 "2017-05-16T13:40:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristiyan\_Panayotov](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/kristiyan_panayotov/32/27214_2.png) [@Kristiyan\_Panayotov](https://community.dhis2.org/u/Kristiyan_Panayotov)\
**Post date:** [16 May 2017 13:40 UTC](https://community.dhis2.org/t/data-elements-sharing-functionality/4308/1 "2017-05-16T13:40:47Z")

</div>

Dear DHIS2 community members,

I have the following question:

I have two partners working on the same program in DHIS2, but I don’t want the one partner to see a specific data element, because it contains sensitive information.

Is it possible two users to “see” the same data set/program, but hide one/more data element from one or the other user? Is that possible from the Data elements sharing options? When I tried to assign one Data elements to a specific User, still other Users are able to see that Data Element.

Is there a way to achieve this?

Any help will be greatly appreciated,

With respect

Kristiyan Panayotov

---

<div class="post-metadata">

**Author:** ![prosper](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/p/7c8e57/32.png) [@prosper](https://community.dhis2.org/u/prosper)\
**Post date:** [18 May 2017 07:42 UTC](https://community.dhis2.org/t/data-elements-sharing-functionality/4308/2 "2017-05-18T07:42:50Z")

</div>

Dear Kristiyan,

Meta data sharing is key to solving your requirement. You will need to group the users into different user groups and under maintenance data elements provide view access to those you want to see and and no public access. Only user in the group granted view access will be able to see it in analysis.

![image](https://dhis2.b-cdn.net/images/transparent.png)

Regards

> **···**
>
> On Tue, May 16, 2017 at 4:40 PM, Kristiyan Panayotov [Kristiyan@logicaloutcomes.net](mailto:Kristiyan@logicaloutcomes.net) wrote:
> 
> > Dear DHIS2 community members,
> 
> > 
> 
> > I have the following question:
> 
> > 
> 
> > I have two partners working on the same program in DHIS2, but I don’t want the one partner to see a specific data element, because it contains sensitive information.
> 
> > 
> 
> > Is it possible two users to “see” the same data set/program, but hide one/more data element from one or the other user? Is that possible from the Data elements sharing options? When I tried to assign one Data elements to a specific User, still other Users are able to see that Data Element.
> 
> > 
> 
> > Is there a way to achieve this?
> 
> > 
> 
> > Any help will be greatly appreciated,
> 
> > 
> 
> > With respect
> 
> > 
> 
> > Kristiyan Panayotov
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> Prosper Behumbiize, MPH  
> DHIS2 Implementation| HISP Uganda
> 
> [prosper@hispuganda.org](mailto:prosper@hispuganda.org) | [prosper@dhis2.org](mailto:prosper@dhis2.org) | Skype: prospertb

---

<div class="post-metadata">

**Author:** ![Lars](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/lars/32/34166_2.png) [@Lars](https://community.dhis2.org/u/Lars)\
**Post date:** [18 May 2017 07:48 UTC](https://community.dhis2.org/t/data-elements-sharing-functionality/4308/3 "2017-05-18T07:48:36Z")

</div>

Hi Kristiyan,

you can use [sharing](https://docs.dhis2.org/master/en/user/html/ch20s01.html) to control access to data elements. However, there is a difference between data entry and data analysis. In the data entry module, we do not filter data elements inside forms based on sharing. To control access there, you must either split out into multiple data sets, or have a category combo linked to the data set where each category option uses sharing. In data analysis we do filter data elements according to sharing.

regards,

Lars

![image](https://dhis2.b-cdn.net/images/transparent.png)

> **···**
>
> On Thu, May 18, 2017 at 9:42 AM, Prosper BT [ptb3000@gmail.com](mailto:ptb3000@gmail.com) wrote:
> 
> > Dear Kristiyan,
> 
> > 
> 
> > Meta data sharing is key to solving your requirement. You will need to group the users into different user groups and under maintenance data elements provide view access to those you want to see and and no public access. Only user in the group granted view access will be able to see it in analysis.
> 
> > 
> 
> > 
> 
> > 
> 
> > Regards
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> Prosper Behumbiize, MPH  
> DHIS2 Implementation| HISP Uganda
> 
> [prosper@hispuganda.org](mailto:prosper@hispuganda.org) | [prosper@dhis2.org](mailto:prosper@dhis2.org) | Skype: prospertb
> 
> On Tue, May 16, 2017 at 4:40 PM, Kristiyan Panayotov [Kristiyan@logicaloutcomes.net](mailto:Kristiyan@logicaloutcomes.net) wrote:
> 
> > Dear DHIS2 community members,
> 
> > 
> 
> > I have the following question:
> 
> > 
> 
> > I have two partners working on the same program in DHIS2, but I don’t want the one partner to see a specific data element, because it contains sensitive information.
> 
> > 
> 
> > Is it possible two users to “see” the same data set/program, but hide one/more data element from one or the other user? Is that possible from the Data elements sharing options? When I tried to assign one Data elements to a specific User, still other Users are able to see that Data Element.
> 
> > 
> 
> > Is there a way to achieve this?
> 
> > 
> 
> > Any help will be greatly appreciated,
> 
> > 
> 
> > With respect
> 
> > 
> 
> > Kristiyan Panayotov
> 
> > 
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> Lars Helge Øverland
> 
> Lead developer, DHIS 2
> 
> University of Oslo
> 
> Skype: larshelgeoverland
> 
> [lars@dhis2.org](mailto:lars@dhis2.org)
> 
> [http://www.dhis2.org](https://www.dhis2.org/)

---

<div class="post-metadata">

**Author:** ![Kristiyan\_Panayotov](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/kristiyan_panayotov/32/27214_2.png) [@Kristiyan\_Panayotov](https://community.dhis2.org/u/Kristiyan_Panayotov)\
**Post date:** [18 May 2017 09:15 UTC](https://community.dhis2.org/t/data-elements-sharing-functionality/4308/4 "2017-05-18T09:15:40Z")

</div>

Hello Lars and Prosper – thank you for your response! Greatly appreciated!

Lars,

I am not using a data set but a program. Is there a way to achieve the same with programs, as with data set attribute combo sharing?

With Respect,

Kris

![image](https://dhis2.b-cdn.net/images/transparent.png)

> **···**
>
> Hi Kristiyan,
> 
> you can use [  
> sharing](https://docs.dhis2.org/master/en/user/html/ch20s01.html) to control access to data elements. However, there is a difference between data entry and data analysis. In the data entry module, we do not filter data elements inside forms based on sharing. To control access there, you must either split out into multiple data sets, or have a category combo linked to the data set where each category option uses sharing. In data analysis we do filter data elements according to sharing.
> 
> regards,
> 
> Lars
> 
> On Thu, May 18, 2017 at 9:42 AM, Prosper BT [ptb3000@gmail.com](mailto:ptb3000@gmail.com) wrote:
> 
> > Dear Kristiyan,
> 
> > Meta data sharing is key to solving your requirement. You will need to group the users into different user groups and under maintenance data elements provide view access to those you want to see and and no public access. Only user in the group granted view access will be able to see it in analysis.
> 
> > Regards
> 
> > 
> 
> > Prosper Behumbiize, MPH
> 
> > DHIS2 Implementation| HISP Uganda
> 
> > [prosper@hispuganda.org](mailto:prosper@hispuganda.org) | [prosper@dhis2.org](mailto:prosper@dhis2.org) | Skype: prospertb
> 
> > On Tue, May 16, 2017 at 4:40 PM, Kristiyan Panayotov [Kristiyan@logicaloutcomes.net](mailto:Kristiyan@logicaloutcomes.net) wrote:
> 
> > > Dear DHIS2 community members,
> 
> > > I have the following question:
> 
> > > I have two partners working on the same program in DHIS2, but I don’t want the one partner to see a specific data element, because it contains sensitive information.
> 
> > > Is it possible two users to “see” the same data set/program, but hide one/more data element from one or the other user? Is that possible from the Data elements sharing options? When I tried to assign one Data elements to a specific User, still other Users are able to see that Data Element.
> 
> > > Is there a way to achieve this?
> 
> > > Any help will be greatly appreciated,
> 
> > > With respect
> 
> > > Kristiyan Panayotov
> 
> > > * * *
> > > 
> > > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > > 
> > > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > > 
> > > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > > 
> > > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> Lars Helge Øverland
> 
> Lead developer, DHIS 2
> 
> University of Oslo
> 
> Skype: larshelgeoverland
> 
> [lars@dhis2.org](mailto:lars@dhis2.org)
> 
> [http://www.dhis2.org](https://www.dhis2.org/)

---

<div class="post-metadata">

**Author:** ![Lars](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/lars/32/34166_2.png) [@Lars](https://community.dhis2.org/u/Lars)\
**Post date:** [18 May 2017 09:19 UTC](https://community.dhis2.org/t/data-elements-sharing-functionality/4308/5 "2017-05-18T09:19:53Z")

</div>

Yes you can associate a program with category combinations as well. For  
event-based programs (no registration) it works quite similarly as for data  
sets.

---

<div class="post-metadata">

**Author:** ![Kristiyan\_Panayotov](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/kristiyan_panayotov/32/27214_2.png) [@Kristiyan\_Panayotov](https://community.dhis2.org/u/Kristiyan_Panayotov)\
**Post date:** [18 May 2017 09:22 UTC](https://community.dhis2.org/t/data-elements-sharing-functionality/4308/6 "2017-05-18T09:22:31Z")

</div>

What about tracker capture?

> **···**
>
> Yes you can associate a program with category combinations as well. For event-based programs (no registration) it works quite similarly as for data sets.

---

<div class="post-metadata">

**Author:** ![Lars](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/lars/32/34166_2.png) [@Lars](https://community.dhis2.org/u/Lars)\
**Post date:** [18 May 2017 09:25 UTC](https://community.dhis2.org/t/data-elements-sharing-functionality/4308/7 "2017-05-18T09:25:18Z")

</div>

It’s supported there too.

> **···**
>
> On Thu, May 18, 2017 at 11:22 AM, Kristiyan Panayotov [Kristiyan@logicaloutcomes.net](mailto:Kristiyan@logicaloutcomes.net) wrote:
> 
> > What about tracker capture?
> 
> > 
> 
> > **From:** Lars Helge Øverland [[mailto:lars@dhis2.org](mailto:lars@dhis2.org)]
> > 
> > **Sent:** 18 May 2017 12:20
> > 
> > **To:** Kristiyan Panayotov [Kristiyan@logicaloutcomes.net](mailto:Kristiyan@logicaloutcomes.net)
> > 
> > **Cc:** Prosper BT [ptb3000@gmail.com](mailto:ptb3000@gmail.com); [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net); [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net); Georgi Chakarov [georgi@logicaloutcomes.net](mailto:georgi@logicaloutcomes.net)
> > 
> > **Subject:** Re: [Dhis2-users] Data Elements sharing functionality
> 
> > 
> 
> > 
> 
> > Yes you can associate a program with category combinations as well. For event-based programs (no registration) it works quite similarly as for data sets.
> 
> > 
> 
> > 
> 
> –
> 
> Lars Helge Øverland
> 
> Lead developer, DHIS 2
> 
> University of Oslo
> 
> Skype: larshelgeoverland
> 
> [lars@dhis2.org](mailto:lars@dhis2.org)
> 
> [http://www.dhis2.org](https://www.dhis2.org/)
