Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nicholas5141
Partner - Creator
Partner - Creator

QlikSense Section Access not reflect by AD

Hi All,

I tried few guide and tutorial implement section access in Sense Hub but it still does not work, please assists. 

Script as below by right User1 should be able access the branch ID  = 66 data however, User1 still able to access all the data.

SECTION ACCESS;

SECTION_ACCESS:

LOAD * INLINE [

ACCESS,USERID, BranchID

USER,ADGROUP\User1,66

USER,ADGROUP\User2,11

];

SECTION Application;

FACT:

LOAD * INLINE [

    ID,Amount,Name,BranchID

    1, 10, AA, 11

    2, 20, BB, 22

    3, 30, CC, 33

    4, 11, DD, 44

    5, 13, EE, 55

    6, 15, FF, 66

    7, 5,   FF, 66

];

Please assists thanks a lot!

1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

well that proves that section access is working.

now down to data reduction:

Would you be able to use capital letters in your section access statements:

something like:

SECTION ACCESS;

SECTION_ACCESS:

LOAD * INLINE [

ACCESS,USERID, BRANCHID

USER,DOMAIN\USER1,66

USER,DOMAIN\USER2,11

];

SECTION Application;

FACT:

LOAD * INLINE [

    ID,Amount,Name,BRANCHID

    1, 10, AA, 11

    2, 20, BB, 22

    3, 30, CC, 33

    4, 11, DD, 44

    5, 13, EE, 55

    6, 15, FF, 66

    7, 5,  FF, 66

];

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

8 Replies
lironbaram
Partner - Master III
Partner - Master III

Hi

in the section access table all fields must be in upper case

also it's recomended that all users id's will be in upper case

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

What is ADGROUP in your userid string?

It should be DOMAIN\USERID

something like:

SECTION ACCESS;

SECTION_ACCESS:

LOAD * INLINE [

ACCESS,USERID, BranchID

USER,DOMAIN\USER1,66

USER,DOMAIN\USER2,11

];

SECTION Application;

FACT:

LOAD * INLINE [

    ID,Amount,Name,BranchID

    1, 10, AA, 11

    2, 20, BB, 22

    3, 30, CC, 33

    4, 11, DD, 44

    5, 13, EE, 55

    6, 15, FF, 66

    7, 5,  FF, 66

];

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
nicholas5141
Partner - Creator
Partner - Creator
Author

Hi, I changed the syntax but it still doesn't reflect as per screenshot.

SS.PNGSS2.PNG

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

who are you logged in as ? USER1? USER2?

remember that data reduction happens on document open - so you need to close and open Sense application

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

if you are not sure, put a text object in qliksense app and then type in =osuser() and see results.

that will help us troublshoot it2017-05-08_14-58-28.png

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
nicholas5141
Partner - Creator
Partner - Creator
Author

I login using user1.

By using OSuser() I getting

UserDirectory = PET; UserId = user1

So my userID load inline PET\USER1 should be correct but still not reflected.

I tried login using user3, user3 unable access the application at all. Hence data/row level not working.

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

well that proves that section access is working.

now down to data reduction:

Would you be able to use capital letters in your section access statements:

something like:

SECTION ACCESS;

SECTION_ACCESS:

LOAD * INLINE [

ACCESS,USERID, BRANCHID

USER,DOMAIN\USER1,66

USER,DOMAIN\USER2,11

];

SECTION Application;

FACT:

LOAD * INLINE [

    ID,Amount,Name,BRANCHID

    1, 10, AA, 11

    2, 20, BB, 22

    3, 30, CC, 33

    4, 11, DD, 44

    5, 13, EE, 55

    6, 15, FF, 66

    7, 5,  FF, 66

];

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
nicholas5141
Partner - Creator
Partner - Creator
Author

Thanks it work now!