Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with Section Access and NTNAME

Hello everyone,

I'm having a problem using Section Access and NTNAME on my document. In my script, I have this:

section Access;

LOAD [ACCESS],

     [NTNAME],

     [USUARIO],

     [GROUP]

FROM

..\QVD\PermisosAuto.xlsx

(ooxml, embedded labels, table is Hoja1);

SECTION Application;

LOAD [GROUP],

          Text(Station_ID) as Station_ID

 

FROM

..\QVD\PermisosAuto.xlsx

(ooxml, embedded labels, table is Hoja2);

And then, I have this PermisosAuto.xlsx, where I have the NTNAMEs for each user, and their groups, and another sheet where I have all the Station_ID a user should be able to see depending on his group:

ACCESSNTNAMEUSUARIOGROUP
ADMINAPPLUSCORP\ADMIN-QVADMIN-QV1
ADMINAPPLUSCORP\ADMIN-IOLIVAADMIN-IOLIVA2
ADMINAPPLUSCORP\PTURULLPTURULL3
ADMINAPPLUSCORP\ADMIN-AGILADMIN-AGIL4
ADMINAPPLUSCORP\ARETESARETES5
ADMINAPPLUSCORP\ACAMPINSACAMPINS6
ADMINAPPLUSCORP\ABASCUNANAABASCUNANA7

GROUPStation_ID
1A11
1L02
1T02
2B02
3B05
3B07
3B08
4B09
5B10
6B11
7B12
7B14
7B15
7B17

So, GROUP 1 should see A11, L02 and T02 only, GROUP 2 should only see B02, etc.

The problem I'm having is EVERYONE is entering as Group 1, and I don't know why. Everyone is getting his own OSUser (NTNAME) correctly, but they enter the document as group 1, no matter what his NTNAME is.

Could anyone help me and explain me where is the problem I'm doing in the script/excel section access?

Thanks in advance.

7 Replies
jeffmartins
Partner - Creator II
Partner - Creator II

Hi albert.gil,

You should check the "Initial Data Reduction Based on Section Access" box on document properties in the opening tab.

section access.pgn.png

The "Strict Exclusion" box is used to prevent users not listed in section access table could access the application.

Regards

Not applicable
Author

Yeah, it's done. And it still doesn't work. It looks like the problem is on the server. When saving this document, it works correctly. But when the publisher reloads the document and publishes it, all users are opening the document as Group 1. Maybe I'm missing something in the reload process?

jeffmartins
Partner - Creator II
Partner - Creator II

Hi albert.gil,

Have you included the user responsible for performing the task reload ?

section access.pgn.png

This setting is found on QMC -> Document -> Choose your document on the tree view -> Reload tab

Regards

hannan_t
Partner - Contributor III
Partner - Contributor III

I was facing the same issue. You also have to add Station_ID in PermisosAuto.xlsx and you'll get it resolved.

salto
Specialist II
Specialist II

Hello Albert,

correct me if I am wrong but, ADMIN access overrides security. Please change the ADMIN to USER where needed:

ACCESSNTNAMEUSUARIOGROUP
ADMINAPPLUSCORP\ADMIN-QVADMIN-QV1
USERAPPLUSCORP\ADMIN-IOLIVAADMIN-IOLIVA2
USERAPPLUSCORP\PTURULLPTURULL3
USERAPPLUSCORP\ADMIN-AGILADMIN-AGIL4
USERAPPLUSCORP\ARETESARETES5
USERAPPLUSCORP\ACAMPINSACAMPINS6
USERAPPLUSCORP\ABASCUNANAABASCUNANA7

Hope this helps.

simondachstr
Luminary Alumni
Luminary Alumni

I agree, ADMIN generally can see everything.

hannan_t
Partner - Contributor III
Partner - Contributor III

Yes, Admin can see everything