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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Section Access

Can you perform section access for tabs? So if I was authenticating users by their AD login information, can I say what tabs within a document they can see?

Thanks

23 Replies
cesaraccardi
Specialist
Specialist

The 'X' is an arbitrary character I put to define that the user has access to the particular tab, you must define all the access in the script. If you want to get it back you can access the sheet properties through the document properties and clean the expression.

cesaraccardi
Specialist
Specialist

Note that the "Access" in the expression

Only(Access) = 'X'

is a field matching the sheet and it will change between the tabs. i.e. if you have a sheet called Dashboard and another called Analysis you may have 2 different columns in your access table like "Dashboard" and "Analysis" and the conditional shown expressions will be Only(Dashboard) = 'X' and Only(Analysis) = 'X'

Got it?

Not applicable
Author

Section Access;

LOAD * INLINE [

ACCESS, NTNAME

ADMIN, JOHN.DOE

USER. JANE.DOE

USER. JOE.SMITH

]

;

So after this point, how would I go about giving the access to my "Applications","User", and "Manager" tabs?

John.Doe (being the ADMIN) should see everything

Jane.Doe should see Application and User tabs

Joe.Smith should see only the Managers tabs

cesaraccardi
Specialist
Specialist

Ok, first of all you need a common field between the Section Access and the Section Application... this way you can use the configuration "Initial Data Reduction based on Section Access", the field could be the NTNAME for example. In the Section Application you'll have your access table, so the script may look like this:

Section Access;

LOAD * INLINE [

ACCESS, NTNAME

ADMIN, JOHN.DOE

USER. JANE.DOE

USER. JOE.SMITH

];

Section Application;

ACCESS:

LOAD * INLINE [

NTNAME, APPLICATIONS,USER,MANAGER

JOHN.DOE,X,X,X

JANE.DOE,X,X,

JOE.SMITH,,,X

];

Finally, you put the expressions on the sheets show conditions:

Only(APPLICATIONS)='X' , Only(USER)='X' and Only(MANAGER)='X'

Not applicable
Author

I got it to work. Thank you.

Isnt there an inherit problem with this though. Cant the user go in and remove the conditional statement? Or is there a setting on the document properties to not allow them to see the tab properties?

cesaraccardi
Specialist
Specialist

If the user has access to change the sheet properties it can disable the hide conditions. You can disable the Sheet Properties for users in the Document Properties / Security tab.

Regards,

Cesar

Not applicable
Author

Thats what I thought.

I looked in the Security tab and I see the "Access Document Properties" option but not the sheet properties. Which one is it?

cesaraccardi
Specialist
Specialist

I think its "Access Tabrow Properties".

Not applicable
Author

I found a "Access sheet properties" check box in the "Sheet properties" of each sheet on the security tab, not the document properties.

Could that be what I'm looking for?

cesaraccardi
Specialist
Specialist

I'm not sure but I think thats it... Can you test it with a user access and tell the results?