Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
krishna20
Specialist II
Specialist II

Section Access in Qliksense

Hi Folks,

Could anyone help me on implementation of section access in Qliksense. I have tried in many ways but somewhere the logic is not working properly.

My script is here

SECTION Access;
STAR is *;
SA:
LOAD
UPPER(USERID) AS USERID,
upper(ACCESS) AS ACCESS,
upper(subfield(MARKET,';')) AS MARKET,
upper(subfield(BG,';')) AS BG,
upper(subfield(BU,';')) AS BU,
REDUCTION AS REDUCTION


FROM
[lib://----/SectionAccessxlsx]
(ooxml, embedded labels, table is Sheet4)
WHERE NOT IsNull(USERID) and Active='Y';

Concatenate


load Distinct 'ADMIN' AS ACCESS,
'ID\DUMMY' AS USERID,
'NUM' as REDUCTION,
Upper(Market) as MARKET,
Upper(BG) as BG,
Upper(BU) as BU

Resident Fact;

SECTION Application;

@hic ,

 

 

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You need to describe the symptoms of the problem: What is it that doesn't work?

However, I can right away see that you use multiple reducing fields, and that often causes problem. See more on https://community.qlik.com/t5/Qlik-Design-Blog/Basics-for-complex-authorization/ba-p/1465872

HIC

View solution in original post

4 Replies
krishna20
Specialist II
Specialist II
Author

Any inputs folks??

hic
Former Employee
Former Employee

You need to describe the symptoms of the problem: What is it that doesn't work?

However, I can right away see that you use multiple reducing fields, and that often causes problem. See more on https://community.qlik.com/t5/Qlik-Design-Blog/Basics-for-complex-authorization/ba-p/1465872

HIC

krishna20
Specialist II
Specialist II
Author

Hi ,

Thanks for suggesting and I followed the same which you have mentioned in article.But not working as expected, getting access denied error. Am i missing anything in implementing the logic?

Is any settings needs to be changed in Qliksense QMC? Please advise.

ActiveACCESSUSERIDMARKETBGBU
YUSERxxx\1234567**HEALTH
YUSERxxx\1234567**PERSONAL
YADMINxxx\2567856***

 

SECTION Access;
STAR is *;
SA:
LOAD [MARKET] &'|'& [BG] &'|'& [BU] as %AuthID ,
UPPER(USERID) AS USERID,
upper(ACCESS) AS ACCESS

FROM
[lib://SA/Test/Datamodel/SectionAccess.xlsx]
(ooxml, embedded labels, table is Sheet4)
WHERE NOT IsNull(USERID) and Active='Y';


Load [Market] &'|'& [BU] &'|'& [BU] as AuthID ,
[Market] &'|'& [BG ] &'|'& [BU] as %AuthID
Resident Fact ;


Load [Market] &'|'& [BG] &'|'& [BU] as AuthID ,
[Market] &'|'& [BG] &'|'& '<ANY>' as %AuthID
Resident Fact ;


Load [Market] &'|'& [BG] &'|'& [BU] as AuthID ,
[Market] &'|'& '<ANY>' &'|'& [BU] as %AuthID
Resident Fact ;


Load [Market] &'|'& [BG] &'|'& [BU] as AuthID ,
'<ANY>' &'|'& [BG] &'|'& [BU] as %AuthID
Resident Fact ;

 

Regards

Krishna

jp_golay
Partner - Creator II
Partner - Creator II

You can now test our new Product SAM that will fully automate Section Access Generation product.

It is no longer necessary to maintain a section access list in Excel or in your database, SAM offers you a complete web application that will secure all your data accesses.


A user can request access to an application with a simple form. Then administrators get notified and can assign the RESTRICTIONS and OMITS from the proposed fields values. User access are generated from on a single line per user, no need to generate tedious cartesian products and include all values to get a "*" value working correctly .

Moreover SAM is able to generate an automatic access section from the authorizations of the QMC, and Reverse Engineer existing section Access a time saving for simple cases.

More details on our website or contact me at jp.golay@ebiexperts.com

jp_golay_0-1639987982182.png

 

 

 

 

ebiexperts CTO
With WIP, Control everything!
Qlik Sense, QlikView and NPrinting Source control, Versioning and Deployment, Agile Lifecycle Management