This guide explains how to push users and groups from Microsoft Entra ID into TrueFoundry automatically using SCIM 2.0. With SCIM enabled, assigning a user to your Entra application creates them in TrueFoundry; removing the assignment deactivates them. Entra group memberships sync as TrueFoundry teams.Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Single sign-on between TrueFoundry and Entra is already configured. Follow SAML with Microsoft Entra ID or OIDC with Microsoft Entra ID first.
- You have Admin access in both TrueFoundry and Entra.
- You’re on TrueFoundry v0.143 or higher. (On earlier versions, SCIM is configured directly inside the SSO form.)
Step 1 — Generate the SCIM credentials in TrueFoundry
Enable SCIM provisioning
In TrueFoundry, go to Settings → Security & Access → Provisioning and turn on the SCIM toggle.
Step 2 — Open the Entra Enterprise Application
If you don’t already have an Entra Enterprise Application for TrueFoundry, create one first by following the SAML SSO guide. SCIM provisioning is configured inside the same application.Open Enterprise applications
Sign in to the Microsoft Entra admin center and go to Identity → Applications → Enterprise applications.
Step 3 — Create a provisioning configuration
Open Provisioning and create a configuration
In the application’s left sidebar, click Provisioning, then click + New configuration at the top of the page.

Enter credentials, test, and create
On the New provisioning configuration page, leave Bearer authentication selected and fill in:
- Tenant URL — paste the SCIM URL from TrueFoundry.
- Secret Token — paste the Token from TrueFoundry.

Step 4 — Confirm mappings and scope
Entra ships with default attribute mappings that work with TrueFoundry. You only need to confirm them and choose the scope.Open Mappings
Expand the Mappings section on the provisioning page. Both Provision Microsoft Entra ID Groups and Provision Microsoft Entra ID Users should be Enabled.The defaults map
mail → emails, userPrincipalName → userName, givenName → name.givenName, surname → name.familyName, and objectId → externalId. No changes are needed for a standard TrueFoundry tenant.Adjust settings
Expand the Settings section and set:
- Scope → Sync only assigned users and groups (recommended).
- Provisioning Status → On.
Step 5 — Assign users and groups
Open Users and groups
From the application’s left sidebar, click Users and groups, then Add user/group.
Step 6 — Start provisioning
Start provisioning
On the Overview tab, click Start provisioning in the toolbar.Entra runs the initial sync within a few minutes and re-syncs every 40 minutes thereafter. To sync a single user immediately without waiting for the cycle, use Provision on demand under Quick actions.

How SCIM behaves with Entra
- Sync cadence — Entra performs SCIM sync on a 20–40 minute interval. Force an immediate run with Provision on demand for a single user.
- Deactivation — When you unassign a user, Entra sends a PATCH that sets
active=false. TrueFoundry then deactivates the user (instead of deleting them). - Group naming — Entra group display names sync as TrueFoundry team names. See Provision teams via SCIM for naming rules.
Troubleshooting
PATCH requests are failing with 400 errors
PATCH requests are failing with 400 errors
This is a known issue with Entra’s SCIM client. Append the query parameter
?aadOptscim062020 to the Tenant URL in Entra — this enables the standards-compliant PATCH behaviour Microsoft documents under SCIM compatibility flags.Test connection fails with 401 Unauthorized
Test connection fails with 401 Unauthorized
A user was assigned but never appeared in TrueFoundry
A user was assigned but never appeared in TrueFoundry
- In Entra, open the provisioning configuration and click View provisioning logs to see what happened for that user.
- Confirm Scope is set to Sync only assigned users and groups and that the user (or one of their groups) is assigned.
- Run Provision on demand for the user to skip the sync interval.
Group memberships aren't syncing
Group memberships aren't syncing
Make sure you assigned the group itself (not just the users) to the Enterprise Application, and that Provision Microsoft Entra ID Groups is enabled under Mappings. Nested groups are not supported by Entra SCIM — only direct members of an assigned group are synced.

