Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Master II
Master II

Not applicable
Author

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
Master II
Master II

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
Author

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