Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
manojkumargowda
Creator
Creator

Qliksense section access with both user and group

Hi All,

I am stuck with the section access part of my dashboard. I'm trying to apply 2 levels of security.

1. Only users of group1 and group2 should have access to the dashboard.

2. And  Users should see data only related to their country.

Below script is almost working but there is one issue.  Users who are not part of the groups (1 & 2) are also able to open the dashboard. 

We are using SAML authentication.

Section Access;

DBUSERS:
SQL select
'USER' as ACCESS,
UPPER(UserId) as USERID,
'*' as [GROUP],
UPPER(COUNTRY) as "COUNTRY"
from tableusers;

Concatenate (DBUSERS)

MYGROUPS:
LOAD * INLINE
[
ACCESS, USERID, GROUP
'USER', '*','group1'
'USER', '*','group2'
];

SECTION APPLICATION;

3 Replies
Anil_Babu_Samineni

What info available from tablesusers table?

 
 
Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
manojkumargowda
Creator
Creator
Author

It has just 2 columns. Userid and country fields. 

Anil_Babu_Samineni

Try this?

Section Access;

DBUSERS:
SQL select
'USER' as ACCESS,
UPPER(UserId) as USERID,
'*' as [GROUP],
UPPER(COUNTRY) as "COUNTRY"
from tableusers;

Concatenate (DBUSERS)

MYGROUPS:
LOAD ACCESS, Upper(SubField(USERID, ';')) as USERID, GROUP INLINE
[
ACCESS, USERID, GROUP
USER, User1;User2;User3,group1
USER, User4;User5;User6,group2
];

SECTION APPLICATION;

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)