<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic User Permissions in Automatation 9.0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-Permissions-in-Automatation-9-0/m-p/184005#M49057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;For this task I used the following code (Using VB.net):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim qvApp As New QlikView.Application&lt;/P&gt;&lt;P&gt;Dim qvDoc As QlikView.Document&lt;/P&gt;&lt;P&gt;Dim qvTempDoc As QlikView.Document&lt;/P&gt;&lt;P&gt;qvDoc = qvApp.OpenDoc("File.qvw")&lt;/P&gt;&lt;P&gt;qvTempDoc = qvApp.OpenDoc("TempFile.qvw")&lt;/P&gt;&lt;P&gt;qvDoc.GetUserPermissions.CopyFrom(qvTempDoc.GetUserPermissions())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect that my code copy the "TempFile" user permissions to the "File" user permissions, but it doesn't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me explain what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Carlos Aguilar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Sep 2010 18:29:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-01T18:29:16Z</dc:date>
    <item>
      <title>User Permissions in Automatation 9.0</title>
      <link>https://community.qlik.com/t5/QlikView/User-Permissions-in-Automatation-9-0/m-p/184005#M49057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;For this task I used the following code (Using VB.net):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim qvApp As New QlikView.Application&lt;/P&gt;&lt;P&gt;Dim qvDoc As QlikView.Document&lt;/P&gt;&lt;P&gt;Dim qvTempDoc As QlikView.Document&lt;/P&gt;&lt;P&gt;qvDoc = qvApp.OpenDoc("File.qvw")&lt;/P&gt;&lt;P&gt;qvTempDoc = qvApp.OpenDoc("TempFile.qvw")&lt;/P&gt;&lt;P&gt;qvDoc.GetUserPermissions.CopyFrom(qvTempDoc.GetUserPermissions())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect that my code copy the "TempFile" user permissions to the "File" user permissions, but it doesn't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me explain what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Carlos Aguilar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 18:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Permissions-in-Automatation-9-0/m-p/184005#M49057</guid>
      <dc:creator />
      <dc:date>2010-09-01T18:29:16Z</dc:date>
    </item>
  </channel>
</rss>

