Skip to main content

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.

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 the 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.)
OneLogin’s SCIM provisioner is a separate app from the SAML SSO app — you don’t reuse the SAML Custom Connector you created for sign-in. Both apps coexist in the same OneLogin account and reference the same set of users and roles.

Step 1 — Generate the SCIM credentials in TrueFoundry

1

Enable SCIM provisioning

In TrueFoundry, go to Settings → Security & Access → Provisioning and turn on the SCIM toggle.
2

Copy the SCIM URL

Go to Settings → Security & Access → SSO and expand your OneLogin SSO configuration. Copy the SCIM URL — this is the value OneLogin calls the SCIM Base URL.SCIM URL displayed in SSO configuration
3

Generate the SCIM token

Click the key icon next to your SSO configuration to generate a new SCIM bearer token. Copy it immediately — this is the value OneLogin calls the SCIM Bearer Token.Get SCIM token
The token is only displayed once. Treat it like a password. If you lose it, generate a new one (which invalidates the previous token).

Step 2 — Create the SCIM app in OneLogin

1

Open Applications

In the OneLogin admin console, click Applications → Applications, then click Add App in the top right.
2

Find the SCIM Provisioner app

In the Find Applications search bar, type SCIM. From the list, choose SCIM Provisioner with SAML (SCIM v2 Enterprise).
Even though you’ll only use the SCIM half of this connector, OneLogin ships the SAML and SCIM components together. You can leave the SAML side of this app untouched — the actual sign-in flow is still handled by the SAML Custom Connector you set up in the SAML guide.
3

Name the app

Enter a Display Name such as TrueFoundry SCIM and click Save.

Step 3 — Connect OneLogin to TrueFoundry’s SCIM endpoint

1

Open the Configuration tab

On the SCIM app’s detail page, click the Configuration tab on the left.
2

Paste the SCIM credentials

Enter the values you copied from TrueFoundry in Step 1:
OneLogin fieldPaste this value from TrueFoundry
SCIM Base URLTrueFoundry SCIM URL
SCIM Bearer TokenTrueFoundry SCIM token
3

Enable and save

Click Enable to verify the connection. OneLogin performs a quick probe against the SCIM endpoint and shows a green confirmation if the credentials work. Then click Save to persist the configuration.
If the Enable click returns a 401 error, your token is wrong or has been rotated. Generate a fresh SCIM token in TrueFoundry and paste it back into SCIM Bearer Token.

Step 4 — Turn on provisioning

1

Open the Provisioning tab

Click the Provisioning tab on the left of the SCIM app.
2

Enable provisioning

Check Enable provisioning and click Save.
3

(Optional) Skip manual approvals

Under Require admin approval before this action is performed, uncheck the boxes for any of:
  • Create user
  • Delete user
  • Update user
Unchecking these lets OneLogin sync changes immediately without waiting for an admin to approve each event. Leave them checked if your security policy requires explicit approval.
4

Save

Click Save at the top right of the Provisioning tab.

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.
1

Open the Parameters tab

From the SCIM app’s left navigation, click Parameters.
2

Edit the Groups row

Click the Groups row in the parameter table. In the popup window, check Include in User Provisioning and click Save.

Step 6 — Assign users to the SCIM app

1

Open Users

In the OneLogin top navigation, click Users → Users and select the user you want to provision into TrueFoundry.
2

Assign the SCIM app

From the user page, click the Applications tab on the left and click the + icon. Pick the SCIM app you created in Step 2 from the dropdown and click Continue, then Save.
3

Approve pending assignments if needed

Depending on whether you unchecked admin approval in Step 4, the assignment may show as Pending. Click the Pending text, then click Approve in the modal to push the user to TrueFoundry.
For bulk provisioning, assign the SCIM app to a OneLogin Role under Users → Roles → Applications. Every user in that role will be synced to TrueFoundry automatically.

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 a groups attribute that the SCIM app sends to TrueFoundry.
1

Create a Role

In OneLogin’s top navigation, click Users → Roles and click New Role. Give the role a meaningful name (e.g. truefoundry-admins), select the SCIM app you created in Step 2, and click Save.
2

Add users to the Role

On the role’s detail page, open the Users tab. Search for the users you want in this team, click Add To Role for each, and click Save.
3

Add a Set Groups rule on the SCIM app

Go back to your SCIM app and click the Rules tab on the left. Click Add Rule and:
  • 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>.
Click Save.
4

Approve any pending provisions

Return to the SCIM app’s Users tab. If you see Pending provisions, click that text and Approve the changes. OneLogin pushes the new group memberships to TrueFoundry on the next sync.
5

Verify in TrueFoundry

In TrueFoundry, go to Access → Users to confirm the assigned users appear, and check Access → Teams to see the roles materialised as teams. See Provision teams via SCIM for how group names map to TrueFoundry team names.

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=false patch. TrueFoundry deactivates the user instead of hard-deleting them.
  • Role → group naming — A OneLogin Role assigned to the SCIM app surfaces as a groups value on each user; TrueFoundry uses that to populate team memberships.

Troubleshooting

The SCIM Bearer Token is incorrect or has been rotated. Regenerate it from TrueFoundry’s SSO row (key icon), paste the new value into OneLogin’s SCIM Bearer Token field, and click Enable again.
  1. 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.
  2. Confirm Enable provisioning is on under the Provisioning tab.
  3. Confirm the user has an email address in OneLogin — TrueFoundry rejects SCIM users without an email.
  1. Open the SCIM app’s Parameters tab, click the Groups row, and confirm Include in User Provisioning is checked.
  2. 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).
  3. The user must belong to a OneLogin Role that is itself assigned to the SCIM app, otherwise no groups value is sent.
This is a known limitation of OneLogin’s SCIM client: OneLogin doesn’t dispatch a group.deleted or group.user_removed event when a group (role) is deleted directly. To safely remove a team:
  1. First remove the users from the OneLogin role — OneLogin emits user-level events that TrueFoundry honours.
  2. Then delete the role itself in OneLogin.
  3. If a stale team remains in TrueFoundry, an admin can delete it manually under Access → Teams.
Admin approval is still required for one or more of Create user, Update user, or Delete user. Either approve each event manually under the SCIM app’s Users tab, or uncheck those approval boxes in Provisioning → Require admin approval before this action is performed (Step 4) for a fully automated flow.