Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
pk
Contributor III
Contributor III

section access in excel file

hello friends,

am using excel file for section access and columns are like below 

ACCESSNTNAMEPLANTCODEUSERSH14SH11SH12SH13SH15
ADMINDOMAINNAME\ADMINISTRATOR<ALL>DOMAINNAME\ADMINISTRATOR11101
USERDOMAINNAME\SACHIN1100DOMAINNAME\SACHIN11001
USERDOMAINNAME\RAHUL1200DOMAINNAME\RAHUL11000
USERDOMAINNAME\RAHUL1300DOMAINNAME\RAHUL11000

 

below code i have used in application:

SECTION Access;
Access:
LOAD Upper (ACCESS) as ACCESS,
Upper (NTNAME) as NTNAME,
Upper (PLANTCODE) as PLANTCODE,
Upper (USER) as USER
FROM
[$(vSectionAccess)SectionAccess - Operations.xlsx]
(ooxml, embedded labels, table is Sheet1);

SECTION Application;

Sheetlevel:
LOAD Upper (USER) as USER,
SH14,
SH11,
SH13,
SH12,
SH15
FROM
[$(vSectionAccess)SectionAccess .xlsx]
(ooxml, embedded labels, table is Sheet1);

and added condition in sheet properties:

=USER = Only({<SH11={1}>} USER)

Unfortunately this is not working as expected.  PLANCODE Wise access restriction is working but sheet level access is not working. all sheets are visible to all users.  please help to restrict sheet level access.

Thanks in advance

7 Replies
MayilVahanan

HI @pk 

Based on ur sample, all user has sheet 11 access. so yes, it will display for all users.

Only({<SH11={1}>} USER)

Many examples are available in Community. For basic, please refer below. Hope it helps

https://community.qlik.com/t5/QlikView-Documents/Type-of-Security/ta-p/1490510

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
pk
Contributor III
Contributor III
Author

Thanks for revert. All users have access of SH11 but in the sample data there are multiple sheets which are also visible to all user which is incorrect.

MayilVahanan

HI @pk 

Can you provide the sample file and excel sheet to verify

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
michal__
Contributor III
Contributor III

Hi,

try this condition for sheet visibility: =Only(SH11)

pk
Contributor III
Contributor III
Author

@MayilVahanan  refer attached files

pk
Contributor III
Contributor III
Author

It’s not working
michal__
Contributor III
Contributor III

Hi,

the formula i provided returns 1 or 0 and it should work if placed as a sheet visibility condition.

If your reduction on PLANTCODE works perfectly and the USER is associated with respective NTNAME then sheet visibility should work too.