Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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