cancel
Showing results for 
Search instead for 
Did you mean: 

Security and LogManagement

Marcus_Christi4
Confirmed Champ
Confirmed Champ

Fairly certain this is expected.  My question is more about how to handle it.

The Problem

When you retrieve by Document ID, OnBase will throw NULL if that account doesn't have rights to the document.  The CanI() method needs a check against document type, which is normally unnecessary if you're going straight to the Document ID.  

That's fine - you can trap NULL and do your own work.  But if you wanted to log that a script or other code unsuccessfully tried to access a document improperly, you (apparently) cannot, because the  CreateDocumentHistoryItem method wants a Document object.  Which you can't give because you don't have rights to it.

OnBase will log a "retrieved via Unity" but that doesn't tell you anything about the calling application, purpose, what happened to the file, was it exported, was it printed, etc. which is critical for compliance around history, especially if multiple applications are consuming the same documents for different reasons.

 

Short of writing extra code to do the Document Type check, is there any cleaner way to do this (log to document history that something or someone tried and failed to access the document via code)?

0 REPLIES 0
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.