Skip to main content

Mask or de-identify data for certain users using Section Access

cancel
Showing results for 
Search instead for 
Did you mean: 
mnu
Employee
Employee

Mask or de-identify data for certain users using Section Access

Last Update:

Oct 7, 2022 9:31:44 AM

Updated By:

Sonja_Bauernfeind

Created date:

Mar 11, 2017 4:43:57 PM

Attachments

In many industries including education and healthcare, it is necessary to mask or de-identify certain sensitive fields for certain user groups but also be able to see the data in total for the purposes of comparison or benchmarking.

 

This can be achieved by setting a flag in the section access table for users to determine whether they should see the real data or a masked version of the sensitive fields. In the example below, the code is restricting some fields for users at the individual school level but allowing schools to compare their results to the rest of the schools in the data set.

 

Please refer to the attached QVF and remember that Section Access does not function in Qlik Sense Desktop and must be deployed to a Qlik Sense Server environment. I've also attached the QVW for the QlikView solution.

 

Notes

  • Uncomment the commented section of the code
  • Change userA, userB and adminUser to users in your environment
  • The solution works for both QlikView and Qlik Sense.
  • Consider aggregating the de-identified facts to reduce the number of records in the app.

 

userA from SchoolA will see just Teacher and Student for School A records ONLY. All other schools will have the words De-identified in the Teacher and Student columns:

usera.PNG

Credit to my colleague Yaniv Feldman yfe for this solution.

 

Matt Nunn

Qlik Consulting

Labels (1)
Comments
Anonymous
Not applicable

Hi Matt,

is it possible to get the result as qvw as well?

Regards, Chris

mnu
Employee
Employee

No problem Chris - I've attached the sample code in a qvw.

nkaruwon
Partner - Contributor
Partner - Contributor

I have followed instructions on the document above. I am trying to have all the other non admin users see only their records with the rest of the records marked as "De-Identify" . When I pull the information on my visualisation as the said users, I correctly see the user record and only one other De-Identified record.  I am expecting more records to be presented in this manner but I only see 1 record.  Where could I have gone wrong? Anyone please assist.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Nice work!

richard24best
Creator
Creator

Hi Matt,

Is it possible the attach the files again, as I don't see them anymore on this thread.

Appreciate your help.

Regards,

Richard

richard24best
Creator
Creator

Please ignore, I can see them now.

Thanks.

Richard

matrix123
Contributor III
Contributor III

Hello,

 Can anyone please post the script in a txt file , I am looking to get something similar.

Regards,

Matrix

 

richard24best
Creator
Creator

Hi Matrix,

I have replied on your message with the script

Nibswoo81
Contributor II
Contributor II

Hi all. Is there any way to implement masking without having to duplicate all the data?

Thanks.

Contributors
Version history
Last update:
‎2022-10-07 09:31 AM
Updated by: