This guide explains how to push users and groups from OneLogin into TrueFoundry automatically using SCIM 2.0. With SCIM enabled, assigning a user to your OneLogin SCIM app creates them in TrueFoundry; unassigning them deactivates the user. OneLogin roles can be projected into TrueFoundry teams via theDocumentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Set Groups rule.
Prerequisites
- Single sign-on between TrueFoundry and OneLogin is already configured. Follow SAML with OneLogin first.
- You have Admin access in both TrueFoundry and OneLogin.
- 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
Copy the SCIM URL

Step 2 — Create the SCIM app in OneLogin
Open Applications
Find the SCIM Provisioner app
SCIM. From the list, choose SCIM Provisioner with SAML (SCIM v2 Enterprise).Step 3 — Connect OneLogin to TrueFoundry’s SCIM endpoint
Paste the SCIM credentials
| OneLogin field | Paste this value from TrueFoundry |
|---|---|
| SCIM Base URL | TrueFoundry SCIM URL |
| SCIM Bearer Token | TrueFoundry SCIM token |
Step 4 — Turn on provisioning
(Optional) Skip manual approvals
- Create user
- Delete user
- Update user
Step 5 — Include groups in user provisioning
By default, OneLogin doesn’t send a user’s group memberships to SCIM apps. Flip that on so TrueFoundry can create teams.Step 6 — Assign users to the SCIM app
Open Users
Assign the SCIM app
Step 7 — Push groups (roles) to TrueFoundry
OneLogin doesn’t have a native concept of “groups” — instead, you use Roles plus a Rule that translates the user’s roles into agroups attribute that the SCIM app sends to TrueFoundry.
Create a Role
truefoundry-admins), select the SCIM app you created in Step 2, and click Save.Add users to the Role
Add a Set Groups rule on the SCIM app
- Name — something like
Set Groups from Roles. - Actions — choose Set Groups in
<your SCIM app name>from the dropdown. - Configure the action as for each role with values that match
<your SCIM app name>.
Approve any pending provisions
Verify in TrueFoundry
How SCIM behaves with OneLogin
- Event-driven sync — OneLogin pushes changes (create, update, delete, role/group changes) as they happen rather than on a polling schedule.
- Deactivation vs deletion — When you unassign a user from the SCIM app, OneLogin sends a SCIM delete or
active=falsepatch. TrueFoundry deactivates the user instead of hard-deleting them. - Role → group naming — A OneLogin Role assigned to the SCIM app surfaces as a
groupsvalue on each user; TrueFoundry uses that to populate team memberships.
Troubleshooting
The Enable test returns 401 Unauthorized
The Enable test returns 401 Unauthorized
A user was assigned but never appeared in TrueFoundry
A user was assigned but never appeared in TrueFoundry
- Check the SCIM app’s Users tab — the row may say Pending if admin approval is required. Click Pending and Approve to push the change.
- Confirm Enable provisioning is on under the Provisioning tab.
- Confirm the user has an email address in OneLogin — TrueFoundry rejects SCIM users without an email.
Group memberships aren't appearing in TrueFoundry
Group memberships aren't appearing in TrueFoundry
- Open the SCIM app’s Parameters tab, click the Groups row, and confirm Include in User Provisioning is checked.
- Open the SCIM app’s Rules tab and confirm the Set Groups rule from Step 7 exists and references the SCIM app’s name (not the SAML app’s name).
- The user must belong to a OneLogin Role that is itself assigned to the SCIM app, otherwise no
groupsvalue is sent.
Deleting a group in OneLogin doesn't deprovision the team in TrueFoundry
Deleting a group in OneLogin doesn't deprovision the team in TrueFoundry
group.deleted or group.user_removed event when a group (role) is deleted directly. To safely remove a team:- First remove the users from the OneLogin role — OneLogin emits user-level events that TrueFoundry honours.
- Then delete the role itself in OneLogin.
- If a stale team remains in TrueFoundry, an admin can delete it manually under Access → Teams.
Provisioning Status shows pending forever
Provisioning Status shows pending forever
