Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Amit_B
Creator II
Creator II

Bookmark unpublish permission

Hi,

Question about QMC security rules:

I created a rule to allow users (analyzers, not apps owners) to publish bookmarks they create so other users can use them:
!resource.App.stream.Empty() and resource.App.HasPrivilege("read") and resource.objectType = "bookmark"
Action: Publish

The issue is that users are also able to unpublish bookmarks, even if the bookmarks created by other users.

How can I change the rule so that only the bookmark creator (also analyzer, not app owner) can unpublish it?

Thanks!

Labels (2)
1 Solution

Accepted Solutions
hugo_andrade
Partner - Specialist
Partner - Specialist

Hi @Amit_B !

I love seeing security rule questions! 

So, I will simplify your rule. Since parts of it is already present in other Default rules like CreateAppObjectPublishedApp.

The rule in question needs the following parameters:

  • Resource Filter: App.Object_*
  • Actions: Publish
  • Conditions: ((resource.objectType="bookmark" and resource.owner.userId=user.userId))

If this answer helped you, please mark it as a solution and give it a like.

Thanks!

Live and Breathe Qlik & AWS.
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

View solution in original post

1 Reply
hugo_andrade
Partner - Specialist
Partner - Specialist

Hi @Amit_B !

I love seeing security rule questions! 

So, I will simplify your rule. Since parts of it is already present in other Default rules like CreateAppObjectPublishedApp.

The rule in question needs the following parameters:

  • Resource Filter: App.Object_*
  • Actions: Publish
  • Conditions: ((resource.objectType="bookmark" and resource.owner.userId=user.userId))

If this answer helped you, please mark it as a solution and give it a like.

Thanks!

Live and Breathe Qlik & AWS.
Follow me on my LinkedIn | Know IPC Global at ipc-global.com