Qlik Community

Ask a Question

Knowledge

Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Announcements
Talk to Experts Tuesday: Live chat Aug. 24th 10 AM ET: Bring your Qlik Gold Client questions REGISTER TODAY

Security Rule Example: Remove Edit button in Published and Unpublished Apps

Sonja_Bauernfeind
Digital Support
Digital Support

Security Rule Example: Remove Edit button in Published and Unpublished Apps

There might be requirements to remove the Edit button for specific users. This article provides the steps to remove the Edit button from Qlik Sense Hub from Published and Unpublished app

Resolution:

 

To disable the edit button for a specific user you need to edit the security rules. Also, there are other default rules associated with the Edit function. 

 

Remove Edit button on published apps

 

Rule Used: CreateAppObjectsPublishedApp

Updated Rule:

 

!resource.App.stream.Empty() and resource.App.HasPrivilege("read") and !user.IsAnonymous() and user.name !="user1"

 

 

Remove Edit button on Unpublished apps

 

Rule Used: CreateAppObjectsUnPublishedApp

Updated Rule: 

 

resource.App.stream.Empty() and resource.App.HasPrivilege("read") and !user.IsAnonymous() and user.name !="user1"

 

 

Note :


1. I have added a condition to restrict the edit access for the User1. 
2. Before creating/editing the rules always make note of the changes made. Or else it will be hard to revert back.

3. Best approach is to disable to existing rule and create a new rule and make changes.

For more information on what operators you can use for conditioning, see Security rule conventions
 

Labels (2)
Version history
Revision #:
6 of 6
Last update:
‎2020-09-29 07:47 AM
Updated by: