Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

Help with security rule

Hello
I want to create a security rule to enable the creation of a folder data connection to any folder except for one folder.
the folder that shouldn't have any data connection created is located at :
\\ma1\qliksense\store\qdf_fin

I create the security rold and put the following condition:
((resource.type="folder" and !resource.connectionstring like"\\ma1\qliksense\store\qdf_fin*"))

 

ali_hijazi_1-1751975711366.png

 



when I open the qvf and go to data load editor, I click on the Create Connection button on the right
but I get Access is Denied error message:

ali_hijazi_0-1751975660740.png

 

I can walk on water when it freezes
Labels (2)
6 Replies
Or
MVP
MVP

Removed due to OP request

ali_hijazi
Partner - Master II
Partner - Master II
Author

no I already have a folder data connection with connection string mentioned above

I can walk on water when it freezes
ali_hijazi
Partner - Master II
Partner - Master II
Author

ok @Or 

I put resource.connectionstring like"\\ma1\qliksense\store\qdf_fin*
meaning cannot create a folder connectin in qdf_fin and any sub-folder refered to by the *

I can walk on water when it freezes
Or
MVP
MVP

Removed due to OP request

ali_hijazi
Partner - Master II
Partner - Master II
Author

no you cannot write [lib://ma1/qliksense/store/qdf_fin/somefilename.csv]
this gives an error saying that cannot find connection ma1
so the first text after lib:// is the name of the folder connection

so you need to create a data connection first, and it is in the creatin of the data connection, the prohibit should work


please if you are not sure of what you write in your reply, don't reply or write something that you are sure of and have tried it before

 

I can walk on water when it freezes
Or
MVP
MVP

You completely misunderstood what I said (again, this happened with my first post in this thread as well), but good luck with your issue. Not the best way of getting help IMO.