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

Setting Up Trickle Down Permissions for Object Types

Last updated on 28 June 2021

Admin
Permissions and ACLs

Preface

Be sure to first test all of this in a sandbox environment to make sure it performs exactly as you are wanting before implementing this in production. Changing permissions in large scale environments can have sweeping effects and can take quite a long time for all permissions to go into effect. Be aware that changing permissions across hundreds or thousands of documents could lock up the client for a bit while M-Files updates all the permissions across all documents.
 

Solution

First go to the Project object type. Under the Advanced tab there is a section for defining Default automatic permissions for the object type.

image.png


Make the permissions look like as follows. What the following is saying is that we want to first restrict permissions for anything that references a Project type object. The second checkbox is saying "Follow along to the permissions that are set for that project".

image.png



In addition, make sure that you are allowing metadata drive permissions from the Project property or whatever property you have pointed at the Project object and is on the metadata cards of the related documents. So for instance, if you have a property pointed at the Project object that was called something like "Open Project" you would need to make sure this checkbox was also checked there as well.

image.png



Below, Project A, B, and C are set up. The permissions on Project C is then manually modified so that only Jed can see it. This is a basic example and you can start adding other layers of permissions on top of it such as automatic class permissions, automatic metadata permissions from properties, etc.

image.png


Now whenever a new Document object is created, that points to this Project C, it will get a layer of permissions called "Project C [Project]" as seen below where it is restricted so that only Jed can see this document.

image.png



Something to always be aware of when you are talking about permissions is that they are layered on top of each other like a Venn diagram and it's only where the permissions intersect or the most restrictive set of permissions that apply. 

Additionally, you need to be aware that what you are calling external users has a very specific meaning and connotation in M-Files you should be aware of. The user Sarah has been set up as an external user. What this means is that she is not part of the internal user groups nor will she have access to the document shown. In the example above, she *would* be part of the group allowed to see Project C. if you set it this way, but she is not part of the "Full control of all internal users" which is a built in Named Access Control List (NACL) also shown below.


image.png


image.png



A couple ways around that would be to modify either the object types so that permissions for new object of this type (screenshot below) or to modify the built in NACL. Be aware that modifying the built in NACL will have large sweeping effects because it changing pretty much every document/object in the whole system and can lock up the Admin for a long amount of time (minutes to hours depending on size of the vault) while it makes changes.

image.png



Helpful Tip: If you are just calling them external users and they are set up as internal users in M-Files, then the point is moot, and you don't have to worry about the above.

One last suggestion in closing, try to use User Groups instead of Users. The reasoning is as follows: if you have to update the permissions on an object because new external users get added to a project, with User Groups, you just add the User to the User Group and they get access. If you have to individually add each user to the permissions on the Project, it will then have to go through *all* documents and object that reference that property and update the permissions on all of them which again leads to large sweeping changes that can lock up the Client while all the objects update.

Reference material

https://www.m-files.com/user-guide/latest/eng/Automatic_permissions.html?hl=automatic%2Cpermissions
https://www.m-files.com/user-guide/latest/eng/Permissions_and_Default_permissions.html?hl=automatic%2Cpermissions

As always if you need assistance putting any of the above into place, you can reach out to your account manager at M-Files and they can get you a quote for our Professional Services Team through a Consulting Work Package to assist or put this configuration into place.



 

Still need help?

On this page