2 Replies Latest reply: May 24, 2017 3:42 AM by Michele De Nardi RSS

    QlikSense Security Rule to enable only Bookmarks on Published app

    Michele De Nardi

      Hi to all,

      i'm trying to modify the CreateAppObjectsPublishedApp rule to allow only bookmark creation, so i want to disable sheets duplication, snaphots, stories, access to snapshots library.

       

      The original rule is this:

      Resource Filter: App.Object_*

      Action: Create

      Conditions:

      !resource.App.stream.Empty() and

      resource.App.HasPrivilege("read") and

           (

           resource.objectType = "userstate" or

           resource.objectType = "sheet" or

           resource.objectType = "story" or

           resource.objectType = "bookmark" or

           resource.objectType = "snapshot" or

           resource.objectType = "embeddedsnapshot" or

           resource.objectType = "hiddenbookmark"

           )

      and !user.IsAnonymous()

       

      In order to permit only bookmarks creation (no snapshot, no sheet duplication..) i've changed the security rule like this:

      Resource Filter: App.Object_*

      Action: Create

      Conditions:

      !resource.App.stream.Empty() and

      resource.App.HasPrivilege("read") and

           (

           resource.objectType = "bookmark"

           )

      and !user.IsAnonymous()

       

      All (more or less) it's fine but with a right click on the objects the user can still take snapshot and go to snapshots library.

      2017-05-19 16_58_11-GesCli _ Fogli - Qlik Sense.png

      Can anybody show me the mistake ?