Overview
In some use cases, it is good for M-Files users to be aware that a document exists, even though they do not (yet) have permission to read it.
This article offers some ideas for creating a simple "gatekeeping" permission object that contains the document title and description. This object will appear in search results to indicate the existence of an object the user might want to see, as well as detailing the person to contact for permission to the actual document.
Solution
Here is a simple solution example.
A "DocPermission" object serves as the "gatekeeper." It uses a Named Access Control List (NACL) that gives users in the "Full permissions" property full control of the object (to add users to the "Read document" property).
All internal and external users have read rights to the object by default. Therefore, it will appear in searches for all users. For example, the user "Demo" can then check the "Full permissions" property for who to contact for access to the document.
The "Read Document" property lists the users that have read access to the document that this object controls. This property is used on the document NACL later.
These are the DocPermissions automatic permissions:
The following is the document. It has a reference to the corresponding DocPermissions object. Administrator has full permissions, AlexK can read the document.
These are the automatic properties for "Restricted Doc" class, full for users in "Full permissions" and read for users in "Read document" property.
