Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
cpfefferkorn
Partner - Contributor II
Partner - Contributor II

Security rule for reloading app without edit rights

Hello community,

I am struggeling right now to define a correct security rule for my costumers.
They should be allowed to reload an app without the permission to edit/delete it.

For testing purpose I created a new security rule and tried it with the ready only rights.
The User is allowed to see: App, App Objects, Stream, Tasks and Users. I have created the following security rule:

cpfefferkorn_0-1670244864746.pngSecurity rules overviewSecurity rules overview

Resource Filter : QmcSection_App, QmcSection_ReloadTask, QmcSection_Task, QmcSection_App.Object,QmcSection_Stream,QmcSection_User,App_*, ReloadTask_*,App.Object_*,Stream_*,User_*

My problem is now, the user can see the tasks from QMC, but can't reload it. As soon as the user starts the reload task the following error message appears:

error occurrederror occurred

I tried to modify the security rule: If I enable the function "Update" in Actions, the task is starting but now the user can also edit it.

How can I set the security rule that the user can only start the tasks but without having the edit option for it?

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

Your user needs to have a Professional license for this (or no license at all, but it can't be an Analyzer license).

I'm not entirely sure, but I think you will need to grant read access to the tasks (ReloadTask_*) and tasks section (QmcSection_Task), and update to the app itself (QMC only, so the user can't actually do any harm since they don't have access to the Apps section in QMC). I'm not entirely sure about the last part but I do think it's necessary.

View solution in original post

4 Replies
Or
MVP
MVP

Your user needs to have a Professional license for this (or no license at all, but it can't be an Analyzer license).

I'm not entirely sure, but I think you will need to grant read access to the tasks (ReloadTask_*) and tasks section (QmcSection_Task), and update to the app itself (QMC only, so the user can't actually do any harm since they don't have access to the Apps section in QMC). I'm not entirely sure about the last part but I do think it's necessary.

cpfefferkorn
Partner - Contributor II
Partner - Contributor II
Author

Hello Or,

thanks for your advice.
As far as I know it is not important to give the user a license. At least it tested it without any license and it did not change my results.

I tried several options and made some additional testing.
In my opinion the best option is to do it as you adviced. I also wanted to give the user the right to view some additional sections like user, stream and app objects (only in QMC):

Create a security rule to Read/Update all Apps (App_*)
Create another security rules for only Reading the QmcSections (QmcSection_Task,ReloadTask_*,QmcSection_App.Object,QmcSection_Stream,QmcSection_User,ExecutionResult*,ExecutionSession*,App.Object_*,Stream_*,User_*)

 

RadovanOresky
Partner Ambassador
Partner Ambassador

Hi, you could use Inphinity Flow (or Forms) extension, that allows also Analyzer users to trigger a reload task.

https://youtu.be/ajkAGj8OvoY?t=108

Or
MVP
MVP

As per my original post, the user needs either a professional license, or no license. You just can't use this on someone with an Analyzer license. Quirky, but that was the case last time I checked, anyway.

Insofar as giving users more sections in QMC, just keep in mind that you need to avoid giving them anything where those update permissions on the app might result in the ability to edit things you didn't plan for.