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: 
Not applicable

User Permissions in Automatation 9.0

Hi,

I was trying tu use the automatation API for setting the user permissions of a document. Tried with the method CopyFrom from the IDocumentUserPermissions interface. It seems that the permissions change but I can't find a way to set the new permissions to my document.

For this task I used the following code (Using VB.net):

Dim qvApp As New QlikView.Application

Dim qvDoc As QlikView.Document

Dim qvTempDoc As QlikView.Document

qvDoc = qvApp.OpenDoc("File.qvw")

qvTempDoc = qvApp.OpenDoc("TempFile.qvw")

qvDoc.GetUserPermissions.CopyFrom(qvTempDoc.GetUserPermissions())

I expect that my code copy the "TempFile" user permissions to the "File" user permissions, but it doesn't

Could anyone help me explain what I'm doing wrong?

Thanks

Carlos Aguilar

0 Replies