Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
adnene__
Contributor
Contributor

Section Access: Admin Access work fine, not User Acess

Hello,

I am using Section access and what I noted is that:
- When in ACCESS column I use 'ADMIN', everything works fine i terms of limiting data I user "country code".
- When in ACCESS column I use 'USER', I got 'access denied'.

Do you have an idea what might be the problem?

Screenshot 2019-03-25 at 09.39.17.png

Script:

SA:
LOAD
    upper("ACCESS") 			as ACCESS,
    upper("USERID") 			as USERID,
    Upper(COUNTRY_CODE) 		as COUNTRY_CODE

FROM [PATH_TO_FILE\Section Access.xlsx]
(ooxml, embedded labels, table is Access);

// Section Access implementation
Section Access;
LOAD
    "ACCESS",
    "USERID",
    COUNTRY_CODE
Resident SA;

Section Application;

Drop Table SA;
Labels (1)
5 Replies
agigliotti
MVP
MVP

could you attach your section access script to look at ?
The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
adnene__
Contributor
Contributor
Author

I edited the post to include it

agigliotti
MVP
MVP

i can't see the data reduction in secion application, did you use it in some way?
The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
adnene__
Contributor
Contributor
Author

The data reduction is supposed to be the column "REGION_CODE" in the data, right?
Is did use it, but I use a lot of scripts to do it. And since it works fine whith the ACCESS 'ADMIN', I thought it's useless to think the problem was in the data.

agigliotti
MVP
MVP

you need to make a link between section access table and section application table.
let's try with the below code:
Section Access;
SA:
LOAD
upper("ACCESS") as ACCESS,
upper("USERID") as USERID,
Upper(COUNTRY_CODE) as SA_COUNTRY_CODE
FROM [PATH_TO_FILE\Section Access.xlsx]
(ooxml, embedded labels, table is Access);

Section Application;
tab_1:
load
COUNTRY_CODE,
COUNTRY_CODE as SA_COUNTRY_CODE,
...
from your_data_table;

I hope it helps.
The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it