0 Replies Latest reply: Jun 10, 2013 4:40 AM by Micael Leal RSS

    PHP/SOAP QMSAPI : Document Administrator

      Hello,

       

      I've been looking up the QMSAPIDocumentation.chm to find the appropriate method which allows me to modify the document administrator for a particular, but I don't seem to find the needed class or method nor the property. I'm trying to access it with PHP, SOAP.

       

      I found out how to change the document access but not the folder path access. Here: http://community.qlik.com/message/104179#104179

       

      The reason why I'd like to do it, is that I have some domain users which can read multiple QVW files if they got the rights, but I'd like also to create project domain admins, which actually have access on different folder path and are allowed to be admin of one group of domain users.

       

      So far the starting point seems to be DocumentFolder.DocumentFolderAdministrator.Usernames.

       

      But I don't find an example in that API how to adress the username or to set it or eventually retrieve all current usernames.

       

      Funny thing, they wrote UserNames as property, but it doesn't exist in the Webservice .... when I do a var_dump ...

       

      So far, what I could find was to access on different properties.

       

      With :

       

      var_dump($myDocFolder->GetDocumentFolderResult);

       

      I can retrieve the same information like in the QMS API Document when you search DocumentFolder all members

       

      *Properties

      *Administrators

      *General

      *ID

      *Scope

      *Services

       

      Now, when I try to do

       

                      $qlikviewUserDocumentFoldersTmp = $this->client->GetUserDocumentFolders(array('qvsID' => $this->qlikviewServerInfo->ServiceInfo->ID, 'scope' => 'General'))->GetUserDocumentFoldersResult->DocumentFolder;

                      $tmp=0;

                      foreach($qlikviewUserDocumentFoldersTmp as $folder)

                      {

                                        $myDocFolder = $this->client->GetDocumentFolder(array('id' => $folder->ID, 'scope' => 'General'));

                                        var_dump($myDocFolder->GetDocumentFolderResult->Administrators=array('vh610','ah631'));

                                        //or

                                        //$this->client->GetUserDocumentFolders(array('qvsID' => $this->qlikviewServerInfo->ServiceInfo->ID, 'scope' => 'General'))->GetUserDocumentFoldersResult->DocumentFolder[$tmp]->Administrators=array('vh610','ah631');

                                        var_dump($myDocFolder->GetDocumentFolderResult);

                                        $tmp++;

                      }

       

      Where $tmp is being increased in a loop.

       

      And now I execute again:

       

      var_dump($myDocFolder->GetDocumentFolderResult);

       

      In fact, I can see the 2 administrators as output, but they aren't saved in

       

      http://localhost:4780/qmc/Default.htm

       

      System->Setup->Management Service->Distribution Services->General->Document Administrators but it doesn't add it there

       

      Nor:

       

      System->Setup->Management Service->QlikView Servers->Folder Access->Supervisors or Document Administrators

       

      Please, someone could help me out? I'm trying to find a solution for 2 weeks

       

      Hope someone could help me out.

       

      Thanks