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

M-Files, Prevent file modification but allow metadata modification

Last updated on 27 June 2024

Admin
Permissions and ACLs

Overview

Note: There is an improvement ID 152144, requesting this feature.
M-Files permissions are object wide, in the sense that if you have edit rights to the object, you can both edit metadata and the file(s), and it is not currently possible to separate the two.
This article offers a couple workarounds for this.

Solution

Separate object for the files

A quick way to control the file editing permissions separately is to have a separate object hosting the files, then link this object to the metadata card of the object hosting the metadata.
This way, you are able to define separate permissions for both objects.
 

Vault Application

Another possible way to implement this is to have a vault application (C#) running in the background. It can, for example, trigger in BeforeCheckInChangesFinalize to first check if it should be doing some monitoring (based on, for example, a workflow state that does not allow modifications) then calculate a checksum for the file(s) and compare it to the previous value. If the criteria for allowing modifications is not met, it will throw an error for the user.
 

Still need help?