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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
EhsanPrv
Contributor II
Contributor II

Data reduction issues for admins

I tried to reduce data via section access. it works like a charm for users with "USER" access, but it also reduces data for ADMINS so weird! like I have A as USER and B as ADMIN, A can see their own data and B(ADMIN) sees only the data of A.

here is my script(I have also ticked "Initial data reduction based on section access" in Document properties--> opening):

star is *;
section Access;
SQL SELECT ACCESS,
case when ACCESS = 'ADMIN' then '*' else `Moodle_USERID` END as USERID_TKN,
case when ACCESS = 'ADMIN' then '*' else `Moodle_USERID` END as USERID_CAP,
upper(USERID) as NTNAME,
'*' as PASSWORD,
'*' as USERID
FROM <MyUsersTable>;
concatenate
load * inline [ACCESS , USERID_TKN, USERID_CAP, NTNAME, PASSWORD, USERID
ADMIN, , , , 123, RELOADER
ADMIN, , , SRV-QVS\ADMINISTRATOR , * , *
];

section Application;

as you can see, I want to reduce data based on two fields (USERID_TKN , USERID_CAP)

QlikView 

@Albert_Candelario 

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

* means LISTED values ( it doesn't mean all values)

 

refer below

vinieme12_0-1666071718919.png

https://help.qlik.com/en-US/sense/August2022/Subsystems/Hub/Content/Sense_Hub/Scripting/Security/man...

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

3 Replies
vinieme12
Champion III
Champion III

* means LISTED values ( it doesn't mean all values)

 

refer below

vinieme12_0-1666071718919.png

https://help.qlik.com/en-US/sense/August2022/Subsystems/Hub/Content/Sense_Hub/Scripting/Security/man...

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
EhsanPrv
Contributor II
Contributor II
Author

Hey @vinieme12 

Actually it appears that you're right. MyUserTable is not complete yet.

Thank you so much

Albert_Candelario
Former Employee
Former Employee

Thanks @vinieme12 ! 

Glad we could resolve it quickly @EhsanPrv 

Cheers,

Albert

Please, remember to mark the thread as solved once getting the correct answer