<?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 QlikView API how to &amp;quot;allow  creation of server objects&amp;quot; only to some users? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568068#M211819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the below code to reload daily my qlikview document. However, by default all the users are allowed to create server objects.&lt;/P&gt;&lt;P&gt;I would like to turn off by default that check box (in the UI is in the Source Document Task/ Server tab/ Server Objects/ Allow Creation of Server Objects). I couldn't find an API equivalent of that check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is how can I turn off, or allow only certain users to create server objects, after I reloaded the document. (everything works fine except this).&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DocumentTask documentTask = new DocumentTask();&lt;/P&gt;&lt;P&gt;documentTask.General = new DocumentTask.TaskGeneral();&lt;/P&gt;&lt;P&gt;documentTask.General.Enabled = true;&lt;/P&gt;&lt;P&gt;documentTask.General.TaskName = reloadTaskName;&lt;/P&gt;&lt;P&gt;documentTask.General.TaskDescription = reloadTaskName;&lt;/P&gt;&lt;P&gt;documentTask.Document = qlikViewDoc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Reload Daily&lt;/P&gt;&lt;P&gt;&amp;nbsp; AddTaskDailyTrigger(documentTask);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Once Reloaded Distribute (copy) to QlikView Server&lt;/P&gt;&lt;P&gt;&amp;nbsp; AddTaskDistributionToUsers(documentTask);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //// Server Side&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server = new DocumentTask.TaskServer();&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server.Access = new DocumentTask.TaskServer.TaskServerAccess();&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server.Collaboration = new DocumentTask.TaskServer.TaskServerCollaboration() ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server.DocumentLoading = new DocumentTask.TaskServer.TaskServerDocumentLoading();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting setting = new DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting();&lt;/P&gt;&lt;P&gt;&amp;nbsp; setting.Mode = ServerDocumentLoadMode.Allow;&lt;/P&gt;&lt;P&gt;&amp;nbsp; setting.QlikViewServerId = QlikViewServerServiceInfo.ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //setting.ClusterSettings = new DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting.TaskDocumentLoadClusterSetting [] {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting.TaskDocumentLoadClusterSetting() { Mode = DocumentLoadMode.Allow }};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //documentTask.Server.DocumentLoading.ServerSettings = new DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting[] { setting };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server.EnableAuditLogging = false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Task Details&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Scope = DocumentTaskScope.Reload | DocumentTaskScope.General | DocumentTaskScope.Triggering | DocumentTaskScope.Distribute| DocumentTaskScope.Server;&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.QDSID = QlikViewDistributionServerServiceInfo.ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; _qvClientWS.SaveDocumentTask(documentTask);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 23:08:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-24T23:08:01Z</dc:date>
    <item>
      <title>QlikView API how to "allow  creation of server objects" only to some users?</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568068#M211819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the below code to reload daily my qlikview document. However, by default all the users are allowed to create server objects.&lt;/P&gt;&lt;P&gt;I would like to turn off by default that check box (in the UI is in the Source Document Task/ Server tab/ Server Objects/ Allow Creation of Server Objects). I couldn't find an API equivalent of that check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is how can I turn off, or allow only certain users to create server objects, after I reloaded the document. (everything works fine except this).&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DocumentTask documentTask = new DocumentTask();&lt;/P&gt;&lt;P&gt;documentTask.General = new DocumentTask.TaskGeneral();&lt;/P&gt;&lt;P&gt;documentTask.General.Enabled = true;&lt;/P&gt;&lt;P&gt;documentTask.General.TaskName = reloadTaskName;&lt;/P&gt;&lt;P&gt;documentTask.General.TaskDescription = reloadTaskName;&lt;/P&gt;&lt;P&gt;documentTask.Document = qlikViewDoc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Reload Daily&lt;/P&gt;&lt;P&gt;&amp;nbsp; AddTaskDailyTrigger(documentTask);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Once Reloaded Distribute (copy) to QlikView Server&lt;/P&gt;&lt;P&gt;&amp;nbsp; AddTaskDistributionToUsers(documentTask);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //// Server Side&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server = new DocumentTask.TaskServer();&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server.Access = new DocumentTask.TaskServer.TaskServerAccess();&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server.Collaboration = new DocumentTask.TaskServer.TaskServerCollaboration() ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server.DocumentLoading = new DocumentTask.TaskServer.TaskServerDocumentLoading();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting setting = new DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting();&lt;/P&gt;&lt;P&gt;&amp;nbsp; setting.Mode = ServerDocumentLoadMode.Allow;&lt;/P&gt;&lt;P&gt;&amp;nbsp; setting.QlikViewServerId = QlikViewServerServiceInfo.ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //setting.ClusterSettings = new DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting.TaskDocumentLoadClusterSetting [] {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting.TaskDocumentLoadClusterSetting() { Mode = DocumentLoadMode.Allow }};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //documentTask.Server.DocumentLoading.ServerSettings = new DocumentTask.TaskServer.TaskServerDocumentLoading.TaskServerDocumentLoadServerSetting[] { setting };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Server.EnableAuditLogging = false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Task Details&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.Scope = DocumentTaskScope.Reload | DocumentTaskScope.General | DocumentTaskScope.Triggering | DocumentTaskScope.Distribute| DocumentTaskScope.Server;&lt;/P&gt;&lt;P&gt;&amp;nbsp; documentTask.QDSID = QlikViewDistributionServerServiceInfo.ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; _qvClientWS.SaveDocumentTask(documentTask);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 23:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568068#M211819</guid>
      <dc:creator />
      <dc:date>2014-01-24T23:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API how to "allow  creation of server objects" only to some users?</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568069#M211820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QMS API in version 11 has &lt;STRONG&gt;ServerObject.Shared property. &lt;/STRONG&gt;I have not tried this.It might be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 23:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568069#M211820</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2014-01-24T23:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API how to "allow  creation of server objects" only to some users?</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568070#M211821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Brindlogcool. I crossed my fingers hoping that's the answer. However ServerObject.Shared refers to objects that the users already created on the server and they want to share those with other users. I looked at the documentTask.Server object, and that object doesn't have anything intuitive for that UI check box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 00:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568070#M211821</guid>
      <dc:creator />
      <dc:date>2014-01-25T00:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API how to "allow  creation of server objects" only to some users?</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568071#M211822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution is to use documentTask.Server.Collaboration. Hope this will help some other folks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; documentTask.Server.Collaboration = new DocumentTask.TaskServer.TaskServerCollaboration();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; documentTask.Server.Collaboration.CreationMode = DocumentCollaborationCreationMode.None;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; documentTask.Server.Collaboration.CreatorUserNames =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new List&amp;lt;string&amp;gt;().ToArray();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 20:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-API-how-to-quot-allow-creation-of-server-objects-quot/m-p/568071#M211822</guid>
      <dc:creator />
      <dc:date>2014-03-04T20:57:26Z</dc:date>
    </item>
  </channel>
</rss>

