1 Reply Latest reply: Jun 5, 2013 4:19 AM by Micael Leal RSS

    How can the QlikView Management API be used to modify permissions?

      According to the document in the below link, the QV Management API can be used to modify permissions, but there is no sample for that there yet.  It doesn't specifically say what permissions, but I am hoping to be able to modify the document administrators for source folders.

       

      http://community.qlik.com/docs/DOC-3648

       

      I was looking at how to modify the document administrators of the source folders under the QlikView Distribution Service as part of an effort to be able to automate some of our setups. Below is code that I have that allows me to step through the Source Folders under a QDS (qdsServices is a list of the QDS services that I get in a previous call):

       

       

      foreach(ServiceInfo info in qdsServices)

                   {                                                           

                      QDSSettings qdsSettings = _client.GetQDSSettings(info.ID, QDSSettingsScope.All);

                      if(qdsSettings != null)

                      {

                          foreach(DocumentFolder sf in qdsSettings.General.SourceFolders)

                          { 

       

      I have two Source Folders under the QDS and these show up correctly and I am able to step through both of them.  Under the properties of the DocumentFolder variable, I look at the General.Path property and see the correct paths listed there.  But the Administrators property is null even though I have administrators that I can see in QMC under the System->Setup->General->Source Folders tab.

       

      Is there a way to view and modify the document administrators for these source folders?  What am I doing wrong that the Adminstrators property is null and that I can't even see the list of administrators much less modify them.