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
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
!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
resource.App.stream.Empty() and resource.App.HasPrivilege("read") and !user.IsAnonymous() and user.name !="user1"
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.