Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

Not applicable

What is the method for adding authorized users to a document?

Hi Everyone,

I cannot seem to find this, but what is the method by with I can add a user to a document on the QMC? 

We have built our own front end of this, and want to be able to add/remove authorized users to a document, I cann't find the method call to do that.  I am using SOAP, calling a QlikView server management version 11.

Thanks,

-Marek

4 Replies
danielrozental
Honored Contributor II

Re: What is the method for adding authorized users to a document?

Not applicable

Re: What is the method for adding authorized users to a document?

Yes I check the SDK, and have used many function there, but it is not immediatly apprent to me which method to use to accomplish my goal in this case.

Thanks,

-Marek

danielrozental
Honored Contributor II

Re: What is the method for adding authorized users to a document?

Here's part of my code

            Dim Document As DocumentNode = QMSClient.GetUserDocuments(QvsId).[Single](Function(x) x.RelativePath.Replace("\", "-").ToUpper() + "-" + x.Name.Replace(" ", "_").ToUpper() = sDocument)

            Dim DocMetaData As DocumentMetaData = QMSClient.GetDocumentMetaData(Document, DocumentMetaDataScope.All)

            Dim iLen As Integer = DocMetaData.Authorization.Access.Length

            ReDim Preserve DocMetaData.Authorization.Access(iLen)

            DocMetaData.Authorization.Access(iLen) = New DocumentAccessEntry

            DocMetaData.Authorization.Access(iLen).UserName = username

    

            Dim aux(0) As DayOfWeek

            DocMetaData.Authorization.Access(iLen).DayOfWeekConstraints = aux

            QMSClient.SaveDocumentMetaData(DocMetaData)

Good luck

Not applicable

Re: What is the method for adding authorized users to a document?

Daniel hi,

For some reason  is the .Authorization.Access.Length is always empty.

We're having QV SBS 11 SR1 installed (No publisher). We're setting insteas the user access through document embedded Section Access\Section application.

Dror

Community Browser