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.
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:- The IdP sends a SCIM request to Lovable.
- Lovable verifies that the user’s email domain is verified for your workspace.
- If Send welcome email to provisioned users is enabled, the user receives an email invitation to join.
- 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:- The IdP sends a deactivation request to Lovable.
- Lovable removes the user from your workspace, or deletes their pending invitation if they have not joined yet.
- 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.
Group push and role updates
When your IdP pushes groups to Lovable:- Pushed groups appear in Settings → Access → Groups with a SCIM badge, and Lovable keeps their membership in sync with your IdP. See SCIM groups.
- Users in a mapped group receive the mapped role. A user in several mapped groups receives the highest-privilege role.
- 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.
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-Adminsandengineering-adminsare 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.
- Okta: Manage groups and Manage Group Push
- Microsoft Entra ID: How to manage groups and Manage users and groups assignment to an application
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.Open identity settings and start the setup
Configure group mappings and the welcome email
- 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.
- 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.
Copy the Base SCIM URL and API key
- 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.
Step 2: Configure SCIM in your identity provider
Use the values generated in Lovable to configure SCIM provisioning in your identity provider.- Okta
- Microsoft Entra ID (Azure AD)
- Other SCIM 2.0 providers
Open the Lovable app's Provisioning tab
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.
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.
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.
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.
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:- Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
- Open the Groups tab.
- In the empty row, enter the Group name exactly as it appears in your IdP (for example,
engineering-admins). - Select the Role to assign: Viewer, Editor, Admin, or Owner.
- Click Add.
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.- Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
- On the General tab, choose Viewer, Editor, or Admin under Default role for new members.
- Click Save changes.
Rotate the API key
Rotate the API key if it may have been exposed or you need a new one:- Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
- On the General tab, click Rotate API key (the rotate icon) next to SCIM API key.
- Click Rotate key to confirm.
- Copy the new API key from the New SCIM API key dialog, then click Done.
- Update your IdP with the new API key.
Toggle welcome emails for provisioned users
Control whether Lovable sends a welcome email to each user provisioned through SCIM:- Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
- On the General tab, enable or disable Send welcome email to provisioned users.
- Click Save changes. The change applies to users provisioned after you save. Existing members are not affected.
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)
- Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
- On the General tab, enable SCIM-managed invites and removal.
- Click Save changes.
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.
Disable SCIM provisioning
To stop automatic provisioning:- Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
- On the General tab, click Disable SCIM.
- Click Disable SCIM again to confirm.
Troubleshooting
Domain "example.com" is not verified for this workspace
Domain "example.com" is not verified for this workspace
example.com, and the request appears as User domain blocked on the Activity tab. To fix:- Go to Identity (Settings → Access → Identity).
- Add and verify the email domain under Verified domains.
- Retry provisioning from your IdP.
Users are provisioned but can't log in
Users are provisioned but can't log in
- Your SSO provider is correctly configured.
- Users are assigned to the SSO application in your IdP.
Role mappings are not being applied
Role mappings are not being applied
- 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
Can I use SCIM without SSO?
Can I use SCIM without SSO?
What happens to existing users when I enable SCIM?
What happens to existing users when I enable SCIM?
I lost my API key. What should I do?
I lost my API key. What should I do?
- Go to Identity (Settings → Access → Identity) and click the SCIM provisioning row.
- On the General tab, click Rotate API key next to SCIM API key and confirm with Rotate key.
- Copy the new key, then update your IdP with it.
Can I provision users without sending them a welcome email?
Can I provision users without sending them a welcome email?
What happens if a user belongs to multiple mapped groups?
What happens if a user belongs to multiple mapped groups?
Why does my IdP group not match a role mapping?
Why does my IdP group not match a role mapping?
Should I use SCIM or just-in-time (JIT) provisioning?
Should I use SCIM or just-in-time (JIT) provisioning?