0 Replies Latest reply: Apr 26, 2017 2:35 PM by Jeannie Terry RSS

    Qliksense - Make Self Service Only Available in Certain Streams

    Jeannie Terry

      We have created user custom properties to handle how users can use Qliksense (QlikConsumer, QlikDeveloper, QlikPowerUser).  In our PROD environment, a QlikConsumer can view dashboards and create bookmarks and stories but they can not create sheets using the following rule.

       

      !resource.App.stream.Empty()

              and resource.App.HasPrivilege("read")

              and (

                  resource.objectType = "userstate"

                  or (

                      resource.objectType = "sheet"

                      and user.@QlikGroup != "QlikConsumer"

                     )

                  or resource.objectType = "story"

                  or resource.objectType = "bookmark"

                  or resource.objectType = "snapshot"

                  or resource.objectType = "embeddedsnapshot"

                  or resource.objectType = "hiddenbookmark"

                  )

              and !user.IsAnonymous()

       

      Now, I want to allow QlikConsumers to create sheets if the Stream has a custom property named StreamType that is set to Self Service.

       

      !resource.App.stream.Empty()

              and resource.App.HasPrivilege("read")

              and (

                  resource.objectType = "userstate"

                  or (

                        resource.objectType = "sheet"

                       and user.@QlikGroup != "QlikConsumer"

                        and resource.stream.@StreamType != "Self Service"

                        )

                  or  (resource.objectType = "sheet"

                       and resource.stream.@StreamType = "Self Service")             

                  or resource.objectType = "story"

                  or resource.objectType = "bookmark"

                  or resource.objectType = "snapshot"

                  or resource.objectType = "embeddedsnapshot"

                  or resource.objectType = "hiddenbookmark"

                  )

              and !user.IsAnonymous()

       

      Can anyone help identify what may be the problem/why this isn't working?