Provisioning Users Automatically
Entra ID provides three methods for automatically provisioning users: SCIM provisioning, Just-In-Time (JIT) provisioning, and LDAP provisioning.
SCIM is the recommended method when Entra ID manages the ongoing account and group lifecycle. It works with either SAML or OAuth/OpenID Connect sign-in, provided that sign-in and SCIM identify the same Files.com username. JIT provisioning creates user accounts on first login and works well when group provisioning is not required. LDAP provisioning is an alternative when group-based filters are required or when the SCIM username mapping cannot be aligned with SAML sign-in.
For sign-in setup and username matching, see Microsoft Entra ID via SAML or Entra ID via OAuth.
SCIM Provisioning
SCIM Provisioning maintains Files.com users and groups from Entra ID independently of the sign-in protocol. Configure it on the existing Entra ID provider in Files.com so provisioned users remain associated with the provider they use to sign in.
In Files.com, edit that provider under SSO Providers, keep Use OAuth or Use SAML as configured, and select Use SCIM Provisioning under Provisioning Method. Set the Secret Token Expiry Date and save. Copy the generated SCIM token when Files.com displays it after saving. Use this token for provisioning, rather than the OAuth app registration's client secret.
Selecting the Entra ID Provisioning Application
For OAuth sign-in, keep your existing app registration and create a separate non-gallery enterprise application for provisioning. Microsoft does not enable automatic provisioning on the enterprise application created from a custom OIDC app registration. This Entra ID application constraint determines where you configure provisioning; Files.com supports OAuth sign-in and SCIM on the same provider.
In Entra ID, go to Enterprise applications, select New application -> Create your own application, and choose Integrate any other application you don't find in the gallery (Non-gallery). Give the app a name that identifies its provisioning purpose, such as Files.com Provisioning. For SAML sign-in, you can configure provisioning on the existing enterprise application.
In the provisioning application, open Provisioning and configure automatic provisioning. Enter the Tenant URL shown in the Files.com provider (https://app.files.com/api/scim) and its generated SCIM token as the Secret Token. Select Test Connection and save after the test succeeds.
Review the user and group mappings, then assign the users and groups you want to synchronize to the provisioning application and start provisioning. With separate sign-in and provisioning apps, manage assignments in both: provisioning assignment controls which accounts are synchronized, while sign-in assignment controls who can use the OAuth application. See Microsoft's SCIM application setup for its current provisioning controls.
Files.com's SCIM configuration options control account defaults, group management, and deprovisioning.
SCIM Token Expiration
The default SCIM token expiry is one year from generation; you can choose a different expiry date in the provider settings. Site Administrators receive an alert email from Files.com before your SCIM token expires.
You can extend the expiry date of the SCIM provisioning token in Files.com. Edit your Entra ID provider's Secret Token Expiry Date and save.
To replace the token, select Generate new token and save the provider. Copy the new token when Files.com displays it, and update the Secret Token in the Entra ID provisioning application. The previous token stops working when the replacement is generated.
User Fields Mapping Between Entra ID and Files.com With SCIM Provisioning
Files.com uses SCIM userName as the Files.com username. Entra ID maps User Principal Name (UPN) to userName by default and maps the email address to the Files.com email field. Review the user attribute mappings in the provisioning application so userName matches the identifier used for sign-in.
For OAuth/OIDC sign-in, Files.com uses the email value returned by Entra ID, falling back to UPN when no email value is returned. If email and UPN differ, map SCIM userName to the value returned during sign-in. Setting only the SCIM email attribute does not change the Files.com username.
For SAML sign-in, review When UPN and Email Do Not Match before enabling SCIM.
Files.com combines First Name and Last Name into Full Name. When both are blank, the username is used as Full Name. Display Name and other fields from Entra ID are ignored.
Group Memberships
Entra ID SCIM provisioning runs as two separate operations. The User sync provisions user accounts but carries no group membership data.
The Group sync runs independently and provisions group objects along with their member lists, placing users into their assigned groups. Group-based filters do not function with Entra ID SCIM provisioning because they evaluate group membership at User sync time, before that data has arrived.
Just-In-Time (JIT) Provisioning
JIT Provisioning creates user records on Files.com upon a user's first successful login. The method is easier than SCIM, but it has one major limitation when used with Entra ID.
Entra ID communicates Group Names as their Group IDs rather than the actual Group Name. Users are provisioned with a list of groups that appears as UUIDs (long strings of characters). These groups work, but they are not easily understood.
Some customers use our API to retroactively rename those groups, but this is not a clean solution. We strongly recommend SCIM provisioning instead when you need to provision group memberships from Entra ID.
This is a limitation of Entra ID itself, not Files.com. JIT Provisioning works correctly on Files.com for other SAML providers, including Okta, Auth0, and OneLogin.
JIT Provisioning works when your Entra ID users are not members of any groups, or when you disable group provisioning via SAML.
LDAP Provisioning
LDAP provisioning lets you use your LDAP directory as the sync source for user and group provisioning while Entra ID continues to handle authentication. Files.com reads group membership directly from your LDAP directory on an hourly schedule and uses that data to provision and deprovision users and groups in Files.com.
LDAP provisioning is configured directly on your existing Entra ID integration. You do not need to create a separate LDAP integration for provisioning. Both the Entra ID authentication configuration and the LDAP provisioning configuration are managed from the same place.
Use LDAP provisioning when you need group-based whitelist or blacklist filters to control which users are provisioned into Files.com. These filters evaluate group membership data that Entra ID does not include in its SCIM User sync, so they cannot function with SCIM or JIT provisioning. LDAP provisioning also works well when your Entra ID tenant uses different values for user.mail and UPN and SAML must continue identifying users by email.
The following fields are required to connect Files.com to your LDAP directory for provisioning:
| Field | Details |
|---|---|
| LDAP Host | The fully qualified domain name (FQDN) or IP address of your LDAP server. You can add a backup host that Files.com uses when the primary host is unreachable. |
| LDAP Server Type | The type of LDAP directory. Supported options are Active Directory and OpenLDAP. |
| LDAP Port | The port used to connect to your LDAP server. |
| Secure Connection | When enabled, Files.com connects using LDAPS, which encrypts communication with SSL/TLS. We recommend enabling this. |
| LDAP Username Field | The LDAP attribute used to match users to Files.com accounts. sAMAccountName is the default. Use userPrincipalName if your organization requires it. |
| LDAP Username | The service account username Files.com uses to connect to your LDAP server. |
| LDAP Password | The password for the LDAP service account. |
| Distinguished Name · Base Search Path | The distinguished name where Files.com starts searching the LDAP directory. For example: CN=Users,DC=mydomain,DC=local. |
| LDAP Domain | The domain suffix appended to usernames in Files.com. For example, mydomain.com creates usernames as user@mydomain.com. |
Files.com offers additional configuration options for LDAP provisioning. This includes group-based whitelist and blacklist filters, including Only provision users in these groups, Only provision these groups, and Exclude these groups from provisioning, which work against the LDAP-synced group membership data.
If LDAP provisioning repeatedly fails, Files.com automatically disables LDAP provisioning for that integration. The Entra ID integration remains enabled, so users continue to authenticate through Entra ID without interruption.
For LDAP connection prerequisites, firewall requirements, and troubleshooting, see LDAP/Active Directory SSO.