SCIM
SCIM lets your identity provider automatically add and remove Lettermint team members. It is designed to work with SSO so managed users can access the right team without accepting an invitation.
SCIM is available on paid plans. Requests for free teams are rejected.
Base URL
Use the SCIM 2.0 base URL:
Code
Authenticate requests with a SCIM bearer token:
Code
SCIM tokens grant access to provision and deprovision users for a team. Store them in your identity provider or secrets manager and never commit them to version control.
Create a SCIM token
SCIM tokens are created for a specific team.
- Go to the team's SCIM token settings.
- Click Create token.
- Enter a descriptive name, such as
Okta SCIMorEntra ID provisioning. - Optionally set an expiration date.
- Copy the token immediately.
Lettermint only shows the token once. If the token is lost, revoke it and create a new one.
Supported SCIM operations
Lettermint supports the SCIM Users and Groups resources for common identity provider provisioning flows.
| Operation | Endpoint | Description |
|---|---|---|
| Service provider config | GET /ServiceProviderConfig | Returns supported SCIM capabilities. |
| Resource types | GET /ResourceTypes | Returns supported SCIM resources. |
| Schemas | GET /Schemas | Returns supported SCIM schemas. |
| List users | GET /Users | Lists users in the team. Supports userName eq "email@example.com" and externalId eq "id" filters. |
| Get user | GET /Users/{id} | Returns a single team user. |
| Create user | POST /Users | Creates or activates a team member. |
| Patch user | PATCH /Users/{id} | Updates the active state. |
| Replace user | PUT /Users/{id} | Replaces profile fields and applies the active state. |
| Delete user | DELETE /Users/{id} | Removes the user from the team. |
| List groups | GET /Groups | Lists synced SCIM groups. Supports displayName eq "Group name" and externalId eq "id" filters. |
| Get group | GET /Groups/{id} | Returns a single synced group. |
| Create group | POST /Groups | Creates a synced group and optional members. |
| Patch group | PATCH /Groups/{id} | Updates group fields or membership. |
| Replace group | PUT /Groups/{id} | Replaces group fields and membership. |
| Delete group | DELETE /Groups/{id} | Deletes the synced group. |
Provision a user
Send a POST /Users request with the user's email address and optional name fields.
POST /Users
When the request succeeds, Lettermint creates the user if needed, verifies their email address, adds them to the team as a member, and removes a matching pending invite.
When your identity provider sends externalId, Lettermint stores it with the managed team user and returns it in future SCIM responses. This lets the identity provider reconcile users by its own immutable identifier.
Deprovision a user
To deactivate a user, send a PATCH /Users/{id} request that sets active to false.
PATCH /Users/{id}
Lettermint removes the user from the team. If that team was the user's current team, Lettermint switches them to another remaining team when possible, otherwise their current team selection is cleared.
You can also send DELETE /Users/{id} to remove a user from the team.
If a user belongs to multiple Lettermint teams, SCIM deprovisioning only removes them from the team owned by the SCIM token. Their account and memberships in other teams remain available.
Sync groups
Lettermint accepts SCIM group push from identity providers. Groups are stored for the team and can include active team users as members.
POST /Groups
Group members must already be active users in the team. If your identity provider sends a group before its users, let the user provisioning job complete and retry the group sync.
Map groups to roles
SCIM users are added as member by default. Team owners can map synced SCIM groups to Lettermint roles from the SSO setup screen.
Use this for administrator access:
- Push groups from your identity provider through SCIM.
- Open the team's SSO setup screen.
- Find SCIM role mapping.
- Set the administrator group to
Owner.
Users in a mapped owner group become owners. SCIM-managed users that are not in an owner group stay or become members. Lettermint will not demote the final remaining owner, even if the identity provider removes that user from the owner group.
Find users
Identity providers commonly check for existing users and groups before provisioning. Lettermint supports these filters:
userName eq "jane@example.com"for usersexternalId eq "okta-user-123"for usersdisplayName eq "Engineering"for groupsexternalId eq "okta-group-123"for groups
Code
The response uses the SCIM ListResponse format:
Code
Identity provider setup notes
Use these settings when your identity provider asks for SCIM details:
| Setting | Value |
|---|---|
| SCIM version | SCIM 2.0 |
| Base URL | https://api.lettermint.co/scim/v2 |
| Authentication | HTTP bearer token |
| Username field | Email address |
| Active field | Boolean active |
Audit history
Lettermint records durable team security events for SCIM token creation and revocation, user provisioning and deprovisioning, and group create, update, and delete operations. Team members can review recent SCIM events in the dashboard.