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

M-Files sync logic for synchronizing users and groups from local Active Directory

Last updated on 1 December 2026 · 3 min read

Active Directory Sync

Overview

This article describes how M-Files Server behaves when synchronizing users and user groups from Active Directory (AD) or from Entra ID using the User Synchronization Plugin. These two sync methods work in the same way. These sync methods are mainly used in on-premises environments, though in some cases the User Synchronization Plugin may be used also in M-Files cloud vaults.

Solution

  • Every 15 minutes M-Files Server polls AD to check all AD synced groups to see if there are updates to them. The calls are always initiated by M-Files Server, never by AD.
  • The groups are checked in order based on the groups' IDs in M-Files, starting from the smallest ID. This means that if you want a certain group to be synced before another group (might be relevant for license assignment), you need to make sure that the groups are created in M-Files in the order that you want them to be synced in.
  • If you sync some group manually, the group does not get its own sync schedule. It's still checked in the same 15-minute sync cycle with the other groups during the next sync.
  • If a new user is added to a synced group, and that user does not yet exist in M-Files, then:
    • A new login account is created for the user.
    • A license is assigned to the login account as specified in the group's setting in M-Files.
    • A new user is created in the vault and linked to the new login account.
    • The new user is added to the group in M-Files.
  • If a user that already exists in M-Files is added to a new synced group, the only change on M-Files' side is that the user is added to the group. No changes will be made to the user's license based on new group memberships.
  • If a user is removed from an AD synced group, but remains a member of some AD synced groups, the user is simply removed from the corresponding group in M-Files. No other aspects of the user are affected.
  • If a user is removed from ALL AD synced groups in a given vault, then the user is disabled in the document vault, but their login account and license remain unchanged (as they might be used in some other vaults).
  • If a user is disabled in AD, the user sync will not make any changes to the user in M-Files. Though the user remains enabled in M-Files and has a license assigned to them, they would not be able to log in to M-Files, since M-Files authenticates the user via AD, and AD denies authentication for the disabled user.

Though this default user synchronization does not support license management scenarios beyond adding licenses to new login accounts, you can use the M-Files API to build applications that manage the licenses depending on memberships of specific groups in on-premises environments.

In M-Files cloud vaults, use M-Files Manage to automate license management, as Manage supports more license management scenarios out of the box. You can also join your on-premises M-Files Server into M-Files Manage to take advantage of the automatic license management features.

Still need help?

On this page