Skip to main content
hic
Former Employee
Former Employee

Section Access is a QlikView feature that is used to control the security of an application. It is basically a part of the load script where you can define an authorization table, i.e. a table where you define who gets to see what. QlikView uses this information to reduce data to the appropriate scope when the user opens the application.

This function is sometimes referred to as Dynamic Data Reduction, as opposed to the loop-and-reduce of the Publisher, which is referred to as Static Data Reduction.

 

Data Model.png

 

For example, above you have the authorization table in Section Access to the left, linking to the field COUNTRY. (In a real application, the authorization table is not visible in the data model.) This means that when a user opens the application, QlikView uses the user name (NTNAME) to establish which countries this user is allowed to see, and then makes the corresponding selection in the Customers table.

The selection propagates to all the other tables in the standard QlikView manner, so that the appropriate records in all tables are excluded, whereupon QlikView reduces the scope for this user to only the possible records. This way, the user will only see data pertaining to the countries to which he is associated.

 

Selection.png

 

A good way to debug your Section Access is to temporarily remove the Section Access statement and run the script. The authorization table will then be visible in the data model and you can make selections in NTNAME.

Within Section Access you should define at least three fields: ACCESS, NTNAME and a third reducing field that links the authorization table with the real data. You may have additional fields also, like user roles or departments.

 

Some points around Section Access:

  • All fields in Section Access must be upper case. Hence, the reducing field must be in upper case also in the data. Use the Upper() function and name the fields in upper case.
  • Don’t use the fields USERID and PASSWORD, unless it is for testing or debugging. Proper authentication is achieved through NTNAME.
  • NTNAME is the field used to match an authenticated user – also if you set up ticketing using other authentication mechanisms than Windows integrated security.
  • NTNAME may contain names of groups as well as individual users.
  • Make sure "Initial Data Reduction..." and "Strict Exclusion" are checked (Document properties - Opening). If the field value of the reducing field in Section Access doesn't exist in the real data, the will be no data reduction unless Strict Exclusion is used.
  • If your users work off-line, i.e. download the physical qvw file, the security offered by Section Access has limited value: It does keep honest people honest, but it will not prevent a malicious user from seeing data which he shouldn't have access to, since the file is not encrypted. So for off-line usage I instead recommend the static data reduction offered by the Publisher, so that no files contain data the user isn't allowed to see.
  • In most of our examples, an inline Load is used in Section Access. This is of course not a good place to keep an authorization table. Store it in a database and load it using a SELECT statement instead!

 

And finally

  • Always save a backup copy when making changes to Section Access. It is easy to lock yourself out...

 

Section Access is a good, manageable and flexible way of allowing different access scopes within one document. And when used on a server, it is a secure authorization method.

 

HIC

 

Further posts related to this topic:

Data Reduction – Yes, but How?
Data Reduction Using Multiple Fields
Tips and tricks for section access in Qlik Sense (2.0+)
https://youtu.be/ObuetXgk2R8

51 Comments
hic
Former Employee
Former Employee

The fact that the script is erased does not matter. The only thing that matters is the data that was loaded in the last script run.

HIC

0 Likes
12,455 Views
Not applicable

Thanks Henric for the quick response. I have one more question. As Qlikview server respects windows directory authentication. Can I use groups as NTNAME in Qlikview section access.

1. Will Accesspoint provide access to only those users who are part of the assigned group?

2. Does application reload required if a new user is added to the windows group?

0 Likes
12,455 Views
hic
Former Employee
Former Employee

Groups in NTNAME should work. And, no, I don't think a reload is necessary: The file contains the group name (not the group members) and the lookup in the AD (does this user belong to the group?) is done when the user tries to open the file.

HIC

0 Likes
12,455 Views
Not applicable

We use AD groups in the NTNAME field extensively.  Works well for us.

0 Likes
12,455 Views
anderseriksson
Partner - Specialist
Partner - Specialist

Groups in NTNAME fields does work, you can also mix users and groups in NTNAME.

Only users part of any group listed in NTNAME or listad directly with user id in NTNAME will have access.

Reload is not necessary when users are added/removed from group that is listed in NTNAME.

Lookup against AD is live when user tries to access the document, it's not done during load.

But if you add or remove a group in the section access table a reload is needed.

0 Likes
12,425 Views
Not applicable

Thanks you everyone for your reply however for me the AD group name is not working perfectly. If a new user is added to the group, Accesspoint shows the dashboard but when opened it asks for username and password and doesn't go further after that. Even if putting the correct credentials.

Any solution for this problem?

Thanks in advance,

Anosh Nathaniel

0 Likes
12,425 Views
Not applicable

Have the AD changes had time to replicate across all DCs?  Sometimes users need to log off to pick up group membership changes.  You can sometimes force a simulation of this by doing a Run As Different User on the iexplore.exe process.

0 Likes
12,425 Views
anderseriksson
Partner - Specialist
Partner - Specialist

Have you used the correct fields in section access?

There are several different fields you can use depending on the kind of access you want.

Sounds like you have used USERID and PASSWORD but should use NTNAME.

0 Likes
12,425 Views
Not applicable

Hi Graeme and Anders, Thanks for your valuable suggestion. My bad, it is working fine now. The AD groups were not in upper case in section access.

0 Likes
12,425 Views
rsdhavle
Creator II
Creator II

I have one doubt. After implementing section access we can give different names dynamically within the dashboard sheets, But can we manage two application names when someone lokks at access point? I dont think its feasible, but if there is any way pls guide me

0 Likes
12,425 Views