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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Section Access

Hi All, if you can help please let me know...

I want to use section access on a document based on the below criteria but I can't get it working

User 1 can access Region = '1'

but User 2 should be able to access Region = '1' but Country 'France'

How do i achieve this in section access.

Your help would be greatly appreciated

1 Solution

Accepted Solutions
SunilChauhan
Champion II
Champion II

use below code for example

section access;

Load * inline [

Access,UserID,REGION

Admin,121,

User,122,2

];

SECTION Application;

Load * inline [

REGION,Country

1,France

2,US

];

go to document properties->Opening _> Initial data reduction based on section access

see the attached file

user ID's 121 and 122

hope this helps

Sunil Chauhan

View solution in original post

3 Replies
hic
Former Employee
Former Employee

You need to use some way to denote all countries in your authorization table. One way to do this is described on http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/02/complex-authorization

HIC

SunilChauhan
Champion II
Champion II

use below code for example

section access;

Load * inline [

Access,UserID,REGION

Admin,121,

User,122,2

];

SECTION Application;

Load * inline [

REGION,Country

1,France

2,US

];

go to document properties->Opening _> Initial data reduction based on section access

see the attached file

user ID's 121 and 122

hope this helps

Sunil Chauhan
Not applicable
Author

Works a treat 😉 Thanks