Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
stvegerton
Creator III
Creator III

Publish and REPLACE is not working for us

We're running a multi-node site v 2.2.3+Build:37release/ms15

We've got developers who own the apps, streams and app objects. They have the authority to publish and delete what they own via security rules...

Yet, when they try to publish and replace, it throws an error to the developer like this: "The operation failed due to insufficient privileges"

In the log it shows this:

Republish app403 Forbidden (HTTP code: 403)

Yet the rules audit show that they can publish and delete...

Anyone seen this before?

31 Replies
Not applicable

but still not working

stvegerton
Creator III
Creator III
Author

Which error shows on the screen? Can you attach an image of it?

stvegerton
Creator III
Creator III
Author

Also make sure the test user owns both apps.

Not applicable

the same error, operation failed due to insufficient priveleges... yes the user is owner for both apps

stvegerton
Creator III
Creator III
Author

Please attach a screen shot of an audit of that user for the apps, app objects and stream in scope of what you're trying to do.

Not applicable

going by the thread i deleted and recreated the rule.. and it just worked...

Thanks v much for the prompt and detailed response.. much appreciated

Not applicable

I can't get this to work on our Qlik Sense Server either (Sept 2017 release). What I did:

  • Set up a test user, called "user2" with QMC access
  • Set up a test stream, called "user2" and made user2 the owner.
  • Published a test app to "user2" stream and made user2 the owner.
  • Set up the following Read, Update, Delete, Publish security rule for the stream (filter= Stream_*,App*):

((user.name="user2")) and ((resource.resourcetype="Stream" and resource.name="user2") or (resource.resourcetype="App" and resource.stream.name="user2") or (resource.resourcetype="App.Object" and resource.objectType="sheet" and resource.owner.name=user.name and resource.app.stream.name="user2") or (resource.resourcetype="App.Object" and resource.objectType="story" and resource.owner.name=user.name and resource.app.stream.name="user2"))

  • Logged in as user2 and tried to replace the test app in the "user2" stream with a different app owned by user2, but got the "The operation failed due to insufficient privileges"

Any thoughts?

stvegerton
Creator III
Creator III
Author

Start simple and add more till it breaks?

Name: PublishReplaceApp

Resource Filter: App*

Actions: Read, Update, Publish

Conditions: ((resource.IsOwned() and resource.owner = user) and (user.name="user2"))

Context: QMC

Not applicable

Copied & pasted that exactly and still get the insufficient privileges error.

stvegerton
Creator III
Creator III
Author

How bout this?

Also, are these old apps?

Name: PublishReplaceApp

Resource Filter: App*

Actions: Read, Update, Publish

Conditions: (resource.IsOwned() and resource.owner = user)

Context: QMC