Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

How to implement "see but not read" type rights

Last updated on 15 December 2023 · 2 min read

Admin
Permissions and ACLs

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.

image.png

These are the DocPermissions automatic permissions:

image.png

The following is the document. It has a reference to the corresponding DocPermissions object. Administrator has full permissions, AlexK can read the document.

image.png 

These are the automatic properties for "Restricted Doc" class, full for users in "Full permissions" and read for users in "Read document" property.

image.png

Additional references

Creating a New Named Access Control List (m-files.com)

Pseudo-users (m-files.com)

Still need help?