Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
keithlawrence
Contributor III
Contributor III

Sheet Section Access by Group

I have an app that I need to apply section access to restrict which tabs people can see.

Our users are being managed by the QMC and they are all placed in groups. How do I use those group names within my section access? I do not want to hold specific usernames within the app as it will become unmanageable.

I've tried applying the following but the users cannot open the app from the Access Portal.

Section Access;

LOAD * INLINE [

ACCESS, NTNAME, SHEET

USERS, GROUP1, SH01

USERS, GROUP1, SH02

USERS, GROUP1, SH03

USERS, GROUP2, SH01

USERS, GROUP2, SH02

];

Section Application;

Any help?

1 Solution

Accepted Solutions
keithlawrence
Contributor III
Contributor III
Author

I found a solution to this question.

Section Access;

LOAD * INLINE [

    ACCESS, NTNAME, GROUP

    ADMIN, MYUSERNAME, ALL // replace MYUSERNAME with your username otherwise you will be locked out the app.

    USER, GROUP1, GROUP1

    USER, GROUP1, GROUP2

];

Section Application;

SheetAccess:

LOAD * INLINE [

GROUP, SH01, SH02, SH03

    ALL, 1, 1, 1

    GROUP1, 1, 1, 1

    GROUP2, 1, 1, 0

];

In each tab I added a show condition to of =SH01 or =SH02 or =SH03.

Check the box in Document Settings to restrict data by Section Access.

Once published, the users in GROUP1 could see all tabs but GROUP2 could only see sheets SH01 and SH02

View solution in original post

3 Replies
settu_periasamy
Master III
Master III

keithlawrence
Contributor III
Contributor III
Author

Those solutions require me to have the usernames in the Section Access which is not manageable. I need to use the groups in QMC to specify access

keithlawrence
Contributor III
Contributor III
Author

I found a solution to this question.

Section Access;

LOAD * INLINE [

    ACCESS, NTNAME, GROUP

    ADMIN, MYUSERNAME, ALL // replace MYUSERNAME with your username otherwise you will be locked out the app.

    USER, GROUP1, GROUP1

    USER, GROUP1, GROUP2

];

Section Application;

SheetAccess:

LOAD * INLINE [

GROUP, SH01, SH02, SH03

    ALL, 1, 1, 1

    GROUP1, 1, 1, 1

    GROUP2, 1, 1, 0

];

In each tab I added a show condition to of =SH01 or =SH02 or =SH03.

Check the box in Document Settings to restrict data by Section Access.

Once published, the users in GROUP1 could see all tabs but GROUP2 could only see sheets SH01 and SH02