Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to restrict buttons based on AD with Section Access

Hi All!

I have an application with some buttons that accomplish different functionalities, but I need each of them to be seen just for some users. For example:

     - Button1: User1 & User2

     - Button2: User2 & User3

     - Button3: User 4.

The idea is that my .qvw can take the user that is using the application from ActiveDirectory, and show him just some buttons that I have defined.

I don't understand really much about SectionAccess, but I have been able to get a code like this:

SECTION Access;

LOAD ACCESS,

     NTNAME,

     PERFIL

FROM

[..\..\..\USR_FILES\360-ESTAR_BIEN\Parametros.xlsx]

(ooxml, embedded labels, table is [Section Access]);

SECTION Application;

Access_Aplication:

LOAD PERFIL,

     IDENTIDAD

FROM

[..\..\..\USR_FILES\360-ESTAR_BIEN\Parametros.xlsx]

(ooxml, embedded labels, table is [Nivel Permiso]);

The problem is, how can I restrict the view of some buttons based on this?

Any suggestion, approach, guide?

Many thanks in advance!

1 Reply
hic
Former Employee
Former Employee

You can create a show condition in the button. See Layout - Show - Conditional.

Here you need to enter a formula that determines whether the button should be visible or not. If IDENTIDAD is your user name (with only one value left when a user has logged on), the following could be a valid condition that shows the button to user 1 and 2:

     =Match(IDENTIDAD, 'USER1', 'USER2')

HIC