Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Suzanne_van_der_Tang
Contributor II
Contributor II

Only allow publication to Streams with Custom Property @Stream_access = 'Acceptatie'

Hi,

In our Qlik environment, we would like to implement a security rule where a user is only allowed to publish an app to the streams which have the property @Stream_access set to value 'Acceptatie'. 

Questions I have:
- To what resources must the resource filter be set? Only apps, or also streams?
- How do I query the "publish stream - to" in the condition part of the security rule? 

Currently I've tried the following:
- Resource filter: App_* and Stream_*
- Actions: Publish
- Conditions: "((resource.stream.@Stream_access="Acceptatie" ))

I guess it fails, because the "stream" the app is coming from (my work environment) does not have this property set to "Acceptatie". So I guess I should query the value of the "stream to publish to"?

Any help is much appreciated!

Grt,
Suzanne

Labels (1)
1 Solution

Accepted Solutions
Suzanne_van_der_Tang
Contributor II
Contributor II
Author

I found a solution!

For future reference:
- I've created a custom property on stream level, named "Publishing_Hub_Allowed", and values "Y" and "N"
- For the acceptance stream, I've put the value on Y, and the other N
- I've implemented the following security rule:

This works!

 

View solution in original post

1 Reply
Suzanne_van_der_Tang
Contributor II
Contributor II
Author

I found a solution!

For future reference:
- I've created a custom property on stream level, named "Publishing_Hub_Allowed", and values "Y" and "N"
- For the acceptance stream, I've put the value on Y, and the other N
- I've implemented the following security rule:

This works!