Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
PavelKas
Contributor III
Contributor III

How to give access using User roles and Security rules in Qlik Sense QMC

Hi,

There are about 25 applications in Stream Everyone. 10 of them give access to all users and the rest should give access depending on the user roles. The total number of users is about 60. The number of the assigned roles is 18.

First I have ctreated a Custom Property for Apps, let's say "AppAccess" and assigned different values to all the applications that should be protected. Then I began ctreating a new Security Rule for the Apps where the Property is not empty. Namely in Advanced Conditions section:

(resource.@AppAccess = "app1" and (user.roles="a" or user.roles="b" or user.roles="c")) or

(resource.@AppAccess = "app2" and (user.roles="d" or user.roles="e")) or...

But it looks ugly and besides this condition string has a limit on char number. I have reached this limit and look for a more elegant idea...

Please help.

Thank you.

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

modify the custom property AppAccess Choose both resources APP and USER  

 

for each user under property AppAccess  = you can add values app1,app2 etc

similarly for each app under property AppAccess  = a unique value to each app e.g.  app1 

example

User1 

AppAccess = app1,app2

User2

AppAccess = app1

 

SomeApp has AppAccess value =app1

SomeOtherApp has AppAccess value =app2

 

Then use a single security rule something like below

(resource.@AppAccess  matches  user.@AppAccess)

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

modify the custom property AppAccess Choose both resources APP and USER  

 

for each user under property AppAccess  = you can add values app1,app2 etc

similarly for each app under property AppAccess  = a unique value to each app e.g.  app1 

example

User1 

AppAccess = app1,app2

User2

AppAccess = app1

 

SomeApp has AppAccess value =app1

SomeOtherApp has AppAccess value =app2

 

Then use a single security rule something like below

(resource.@AppAccess  matches  user.@AppAccess)

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
PavelKas
Contributor III
Contributor III
Author

Thank you for your help! It works!