Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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