Skip to main content
SCIM (System for Cross-domain Identity Management) lets your identity provider (IdP) create, update, and remove Lovable users automatically. It is available on the Enterprise plan. With SCIM, you can manage workspace access centrally from your IdP. Users are automatically added when assigned, removed when unassigned, and assigned roles based on group membership, keeping your workspace in sync without manual user management.

Prerequisites

Before setting up SCIM provisioning, you need:
  • IdP admin access in Okta, Microsoft Entra ID, or any other SCIM 2.0 provider.
  • Workspace owner or admin role in Lovable.
  • At least one verified domain for your workspace. SCIM only provisions users whose email domain is verified. See Verify a domain for your workspace.
  • An active single sign-on (SSO) provider using OIDC or SAML. See Set up single sign-on (SSO).
  • IdP groups for each Lovable role. During setup, you map at least one IdP group to each of the Admin, Editor, and Viewer roles. See Plan your identity provider groups.
If you don’t have SSO yet, you typically create one application in your identity provider that handles both SSO authentication and SCIM provisioning. If you already have SSO, you can create a separate IdP application for SCIM provisioning and keep your existing SSO setup unchanged. Lovable continues to use your current SSO provider for authentication, regardless of which IdP application handles SCIM.
Some identity providers require SCIM provisioning to be configured on a SAML application, even if SSO authentication uses OIDC. In this case, the SAML application with SCIM enabled is used only for provisioning and does not need to be configured as an SSO provider in Lovable.

How SCIM works in Lovable

This section explains how Lovable processes SCIM events from your identity provider.

User provisioning

When your IdP creates or assigns a user to the Lovable application:
  1. The IdP sends a SCIM request to Lovable.
  2. Lovable verifies that the user’s email domain is verified for your workspace.
  3. If Send welcome email to provisioned users is enabled, the user receives an email invitation to join.
  4. The user joins the workspace with the default role when they accept the invitation or sign in through your SSO provider. When your IdP pushes their group membership, Lovable updates the role from your group mappings.

User deprovisioning

When your IdP removes or deactivates a user:
  1. The IdP sends a deactivation request to Lovable.
  2. Lovable removes the user from your workspace, or deletes their pending invitation if they have not joined yet.
  3. The user can no longer access the workspace. Projects they owned go to the member with the highest role (owners first, then admins, then editors). Projects with access set to Restricted are not transferred. A workspace owner has to transfer them manually. See Choose who inherits their projects.
SCIM cannot deactivate or delete the workspace owner.

Group push and role updates

When your IdP pushes groups to Lovable:
  1. Pushed groups appear in Settings → Access → Groups with a SCIM badge, and Lovable keeps their membership in sync with your IdP. See SCIM groups.
  2. Users in a mapped group receive the mapped role. A user in several mapped groups receives the highest-privilege role.
  3. Users removed from all mapped groups keep their workspace access and receive the default role. To remove a user from the workspace, unassign them from the Lovable application in your IdP.
Group mappings apply to the workspace owner too. If the owner belongs to a mapped group, group push changes their role, and a group mapped to Owner grants the Owner role to every member of that group. The current owner keeps their role unless their own groups change it. Keep the owner out of mapped groups, and map a group to Owner only if you intend to grant ownership through your IdP.

Supported SCIM operations

Lovable implements the SCIM 2.0 specification and supports the following operations:

Plan your identity provider groups

Lovable assigns roles from the IdP groups you map, so decide on your groups before you start the setup wizard. You create and manage the groups in your identity provider. These rules are specific to Lovable:
  • One group per role, at minimum. The setup wizard requires at least one group mapped to each of Admin, Editor, and Viewer. You can map more groups to the same role later, for example one group per team that all map to Editor.
  • Exact names. Enter each group name exactly as your identity provider sends it, including capitalization and punctuation. Matching is case-sensitive, so Engineering-Admins and engineering-admins are different groups to Lovable.
  • Highest role wins. A user in several mapped groups receives the highest-privilege role among them.
  • A default role covers everyone else. Users whose groups have no mapping receive the default role, which is Viewer after setup. You can change the default role later.
  • Push the groups you map. If your identity provider supports group push, push the same groups you map in Lovable so that group membership stays in sync.
  • Owner is a mapping option. A group mapped to Owner grants the Owner role to its members, and the current owner’s role follows their groups like anyone else’s. See Group push and role updates.
For creating groups, adding members, and pushing or assigning groups to an application, follow your identity provider’s documentation:

Set up SCIM provisioning

Setting up SCIM provisioning requires configuration in both Lovable and your identity provider. You start in Lovable, where a short wizard collects your group mappings and then generates the credentials your identity provider needs. You then complete the setup in your IdP.

Step 1: Configure SCIM in Lovable

First, enable SCIM provisioning in Lovable and copy the values needed by your identity provider.
1

Open identity settings and start the setup

Go to Identity (Settings → Access → Identity) and click Enable in the SCIM provisioning row.The button is disabled until your workspace has an SSO provider, with the hint Configure an SSO provider before enabling SCIM.
2

Configure group mappings and the welcome email

The wizard opens on Configure group mappings with one row each for Admin, Editor, and Viewer.
  • Group name: Enter the group name exactly as it appears in your identity provider. Matching is case-sensitive.
  • Role: Choose Viewer, Editor, Admin, or Owner.
Click Add group to map more groups. Each of Admin, Editor, and Viewer needs at least one group. Lovable locks the last row for those roles, and Continue stays disabled until all three have a group name.Below the table, use the Send welcome email to provisioned users toggle to control whether Lovable emails an invitation to each user provisioned through SCIM.
  • Enabled (default): Each newly provisioned user receives a welcome email with a link to join the workspace.
  • Disabled: Users are provisioned silently. They can still sign in through your configured SSO provider when they’re assigned in your IdP.
Click Continue. Lovable enables SCIM provisioning and generates your API key.
3

Copy the Base SCIM URL and API key

The Set up SCIM provisioning screen shows the two values your identity provider needs:
  • Base SCIM URL: The endpoint your IdP uses to sync users.
  • SCIM API key: The bearer token that authenticates SCIM requests. Anyone with this key can provision users in your workspace.
Copy the API key now. Lovable shows the key masked and lets you copy it only on this screen. If you lose it, rotate the key to generate a new one.
Click Done to finish. If you click Cancel on this screen and confirm with Cancel setup, Lovable disables SCIM and invalidates the new API key. Run the setup again to generate another one.
After setup, the default role for users without a mapped group is Viewer. You can change it, add more group mappings, or update the welcome email setting at any time. See Manage SCIM provisioning.
Enabling SCIM disables Verified email sign-up in the User provisioning section, because SCIM now manages workspace membership from your identity provider. See Workspace identity settings.

Step 2: Configure SCIM in your identity provider

Use the values generated in Lovable to configure SCIM provisioning in your identity provider. Select your identity provider below and follow the instructions to complete SCIM configuration. For more information, refer to your IdP’s official documentation.
SCIM provisioning uses the same Lovable app you added from the Okta App Catalog for SSO. Complete Set up single sign-on (SSO) first.
1

Open the Lovable app's Provisioning tab

In the Okta Admin Console, open the Lovable application you created for SSO and go to the Provisioning tab.
2

Configure API integration

  • Click Configure API Integration, then check Enable API integration.
  • Enter the Base URL (https://api.lovable.dev/scim/v2) and paste your Lovable SCIM API key into the API Token field.
  • Click Test API Credentials. You should see “Lovable was verified successfully!”
  • Click Save.
3

Enable provisioning actions

  • In the Provisioning tab, click To App in the left sidebar.
  • Click Edit and enable:
    • Create Users
    • Update User Attributes
    • Deactivate Users
  • Click Save.
4

Assign users and push groups

  • Assign users (or groups) to the Lovable app under Assignments.
  • Enable group push in Okta and push the same groups you mapped in Lovable, using the same group names.
When SCIM provisioning is configured in both Lovable and your identity provider, user provisioning and deprovisioning will begin automatically based on assignments in your IdP.

Manage SCIM provisioning

After setup, the SCIM provisioning row in Identity (Settings → Access → Identity) shows the Base SCIM URL and the current default role. Click the row to open the SCIM provisioning dialog, which has three tabs:
  • General: the Base SCIM URL, the API key, the default role, the welcome email setting, the SCIM-managed membership setting, and the Disable SCIM button.
  • Groups: your group role mappings.
  • Activity: a log of the SCIM requests your identity provider has sent.
Changes on the General tab apply when you click Save changes.

Manage group role mappings

Group role mappings assign a workspace role to every user in a matching IdP group, so you can control permissions centrally. The mappings you entered during setup appear on the Groups tab of the SCIM provisioning dialog. To add a group role mapping:
  1. Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
  2. Open the Groups tab.
  3. In the empty row, enter the Group name exactly as it appears in your IdP (for example, engineering-admins).
  4. Select the Role to assign: Viewer, Editor, Admin, or Owner.
  5. Click Add.
Changes on the Groups tab apply immediately. To change a mapping’s role, select a new role in its Role column. To remove a mapping, click its trash icon and confirm with Delete. Users in that group are no longer assigned the mapped role. Each of Admin, Editor, and Viewer must keep at least one mapping, so Lovable locks the role and the trash icon on the last mapping for those roles. Group names must match your identity provider exactly, including capitalization. See Plan your identity provider groups. Example mappings

Change the default role

The default role applies to provisioned users who are in no mapped group. It is Viewer after setup. Changing it affects future provisioning and group syncs, not the roles members already have.
  1. Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
  2. On the General tab, choose Viewer, Editor, or Admin under Default role for new members.
  3. Click Save changes.

Rotate the API key

Rotate the API key if it may have been exposed or you need a new one:
  1. Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
  2. On the General tab, click Rotate API key (the rotate icon) next to SCIM API key.
  3. Click Rotate key to confirm.
  4. Copy the new API key from the New SCIM API key dialog, then click Done.
  5. Update your IdP with the new API key.
Rotating the API key immediately invalidates the previous API key. Update your IdP configuration immediately to avoid provisioning interruptions.

Toggle welcome emails for provisioned users

Control whether Lovable sends a welcome email to each user provisioned through SCIM:
  1. Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
  2. On the General tab, enable or disable Send welcome email to provisioned users.
  3. Click Save changes. The change applies to users provisioned after you save. Existing members are not affected.
Disable this setting if you onboard users through a different channel (for example, an internal announcement) and don’t want them to receive a separate Lovable invitation email.

Lock membership to your identity provider

Enable SCIM-managed invites and removal to make your identity provider the only source of workspace membership. While it is enabled, Lovable blocks these actions for everyone in the workspace, including admins and owners:
  • Inviting members, including through workspace invite links
  • Removing members who have joined
  • Project collaborator invitations that would add someone to the workspace
  • Approving workspace access requests
  • Transferring primary ownership to an account outside the workspace (transfers to existing members still work)
Admins and owners can still revoke pending invitations and change member roles in Lovable. SSO sign-in still adds users your IdP has provisioned.
  1. Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
  2. On the General tab, enable SCIM-managed invites and removal.
  3. Click Save changes.
Disabling SCIM also disables this setting.

Review SCIM activity

The Activity tab of the SCIM provisioning dialog lists the requests your identity provider has sent, with the time, action, affected user or group, and whether the request succeeded. Use it to confirm that a sync reached Lovable or to find the request that failed.
  • Last SCIM activity, next to the SCIM activity heading, shows when your IdP last contacted Lovable, or No requests received yet if it never has.
  • The Users and Groups cards summarize the requests in the selected period.
  • Search by user or group, or filter by action. The actions are User created, User updated, User deleted, User deactivated, User role updated, User domain blocked, Group created, Group updated, and Group deleted.
  • Click a row to see the full details of the request. View all in audit logs opens the same events in the audit log.
You can also filter the People tab by SCIM-managed or Not SCIM-managed to see which members your identity provider controls.

Disable SCIM provisioning

To stop automatic provisioning:
  1. Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
  2. On the General tab, click Disable SCIM.
  3. Click Disable SCIM again to confirm.
Disabling SCIM stops automatic provisioning but does not remove existing workspace members. Users previously provisioned via SCIM remain in the workspace until you remove them. Lovable also deletes all SCIM-managed groups in Settings → Access → Groups, along with any project access granted through them.
Deleting your workspace SSO provider also removes SCIM provisioning as part of the same action: the SCIM API key is revoked and SCIM-managed groups are deleted, all in a single audited step. See Delete an SSO provider.

Troubleshooting

SCIM only provisions users whose email domain is verified for your workspace. Your IdP receives this message with a 403 status, with the user’s domain in place of example.com, and the request appears as User domain blocked on the Activity tab. To fix:
  1. Go to Identity (Settings → Access → Identity).
  2. Add and verify the email domain under Verified domains.
  3. Retry provisioning from your IdP.
Verify that:
  • Your SSO provider is correctly configured.
  • Users are assigned to the SSO application in your IdP.
Users provisioned via SCIM must authenticate through SSO.
Check that:
  • Group names in your mappings match what your IdP sends exactly, including capitalization.
  • Your IdP is configured to push groups to Lovable.
  • The Activity tab shows the group sync from your IdP as Group created or Group updated.

FAQ

No, SCIM requires an active SSO provider. Users provisioned via SCIM authenticate using your configured SSO provider.
Existing workspace members are not affected when you enable SCIM. SCIM manages users provisioned through your IdP. Previously invited users continue to exist alongside SCIM-provisioned users.Enabling SCIM disables Verified email sign-up, so new users with a verified-domain email no longer join automatically outside SCIM. See Workspace identity settings.
You can copy the API key only on the setup screen where Lovable generates it. If you’ve lost it:
  1. Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
  2. On the General tab, click Rotate API key next to SCIM API key and confirm with Rotate key.
  3. Copy the new key, then update your IdP with it.
Yes. During SCIM setup, disable Send welcome email to provisioned users. You can also change this setting at any time from the General tab of the SCIM provisioning dialog in Identity (Settings → Access → Identity). When disabled, provisioned users can sign in through your configured SSO provider without receiving an invitation email from Lovable.
When a user belongs to multiple mapped groups, Lovable assigns the highest-privilege role from those groups.
Group name matching is case-sensitive. The name in your mapping must match the group name your identity provider sends exactly, including capitalization and punctuation. Copy the name from your identity provider instead of typing it. Until the names match, users in that group receive the default role.
SCIM is recommended for managed environments where user lifecycle and access should be controlled centrally from your identity provider.Just-in-time (JIT) provisioning applies only to users who sign up through SSO. When a user is created via SSO sign-up, the JIT role is applied.When users are provisioned via SCIM, user creation and role assignment are managed by SCIM, including group-based role mappings, user metadata, or the default SCIM role. In this case, SCIM provisioning and role assignments take precedence over JIT.