Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QMS API: How do I add "<All Authenticated>" authorization to a document?

Hi All,

I'm writing the following code, trying to add "<All Authenticated>" authorization to a codument. But I can't get it done.

var backendClient = new QMSBackendClient();

ServiceKeyClientMessageInspector.ServiceKey = backendClient.GetTimeLimitedServiceKey();

...

var metaData = backendClient.GetDocumentMetaData(docNode, DocumentMetaDataScope.Authorization);

DocumentAccessEntry user = new DocumentAccessEntry {

     UserName = "", // doesn't work

     // UserName = "<All Authenticated>", // also doesn't work

     // UserName = "aRealUserName", // this works and can authorize a user for this document

    AccessMode = DocumentAccessEntryMode.Always,

    DayOfWeekConstraints = new List<DayOfWeek>()

};

metaData.Authorization.Access.Add(user);

backendClient.SaveDocumentMetaData(metaData);

Any one knows how to get this done?
Thanks.

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

My bad. set UserName = "" works.

View solution in original post

3 Replies
danielrozental
Master II
Master II

Can you try doing it the other way around? Add the authorization and then check how do you see it through the QMS API objetcts.

Not applicable
Author

My bad. set UserName = "" works.

bnichol
Specialist
Specialist

The "All Authenticated" authentication grants files system rights to the the Active Directory group "Authenticated Users".

Hope this helps,

B