Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
My bad. set UserName = "" works.
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.
My bad. set UserName = "" works.
The "All Authenticated" authentication grants files system rights to the the Active Directory group "Authenticated Users".
Hope this helps,
B