Codapult
料金プラグインブログドキュメントデモ

開発者のためのSaaSボイラープレート

© 2026 Codapult. All rights reserved.

Built with Codapult

プロジェクト

  • 料金
  • プラグイン
  • ドキュメント
  • SaaSテンプレート比較

会社概要

  • お問い合わせ

法的情報

  • プライバシーポリシー
  • 利用規約
全記事

Getting Started

  • Introduction
  • Quick Start
  • Project Structure
  • License and Permitted Use

Configuration

  • Environment Variables
  • App Configuration

Authentication

  • Authentication
  • OAuth Providers
  • Two-Factor & Passwordless
  • Enterprise SSO (SAML)

Database

  • Database
  • Migrations

Teams

  • Teams & Organizations
  • Permissions & RBAC
  • SCIM Provisioning

Payments

  • Payments & Billing
  • Stripe Setup
  • LemonSqueezy Setup
  • Polar Setup
  • Payment Webhooks

Api

  • API Layer
  • tRPC
  • GraphQL

Ai

  • AI Features
  • Streaming Chat
  • RAG and Semantic Search
  • Quotas and Memory

Email

  • Email
  • Email Templates

Infrastructure

  • Infrastructure
  • Self-Hosting
  • File Storage
  • Docker
  • Background Jobs
  • Terraform & Pulumi
  • Kubernetes

Ui

  • UI & Theming

I18n

  • Internationalization

Content Management

  • Content Management

Admin

  • Admin Panel

Security

  • Security

Monitoring

  • Analytics & Monitoring

Modules

  • Module Architecture
  • Waitlist
  • Audit Log
  • White-Labeling
  • Workflow Automation
  • A/B Testing
  • Welcome Page
  • Referrals
  • GDPR Export and Deletion
  • Outgoing Webhooks

Plugins

  • Plugin System
  • AI Kit Plugin
  • CRM Plugin
  • Helpdesk Plugin
  • Email Marketing Plugin

Deployment

  • Deployment
  • Troubleshooting

Upgrading

  • Upgrading Codapult

Developer Tools

  • AI Agents & IDEs
  • MCP Server
  • Testing
Teams

SCIM Provisioning

Automate enterprise user provisioning and deprovisioning with SCIM 2.0 endpoints.

Codapult includes SCIM 2.0 provisioning for enterprise customers that manage users from an identity provider such as Okta, Azure AD, OneLogin, or Google Workspace.

What it does

SCIM lets an identity provider create, update, deactivate, and list users in a customer's organization. This is separate from SAML login: SAML signs users in, while SCIM keeps membership in sync.

Endpoints

SCIM requests are handled by src/app/api/scim/[...path]/route.ts and routed through src/lib/scim/index.ts.

EndpointMethodsPurpose
/api/scim/UsersGET, POSTList or create users
/api/scim/Users/{id}GET, PUT, PATCH, DELETERead, update, deactivate, or remove a user
/api/scim/GroupsGETList organization groups

Requests must send a bearer token:

Authorization: Bearer scim_xxx
Content-Type: application/scim+json

Token management

SCIM tokens are generated and stored hashed in the scim_token table. Use:

  • generateScimToken(orgId, label) to create a token.
  • listScimTokens(orgId) to show configured tokens.
  • revokeScimToken(tokenId) to disable a token.

The token management API lives at /api/scim/tokens and requires an authenticated admin context.

Data model

SCIM provisioning updates:

  • user
  • organization
  • organization_member
  • scim_token

New SCIM users are added to the target organization with the default member role unless you adapt the mapping for your product.

Setup checklist

  1. Enable ENABLE_SSO.
  2. Create or identify the enterprise customer's organization.
  3. Generate a SCIM token for that organization.
  4. Configure the identity provider with your SCIM base URL: https://app.example.com/api/scim.
  5. Paste the bearer token into the provider's SCIM settings.
  6. Run a test sync and verify organization membership.

Related docs

  • Authentication SSO
  • Teams & Organizations
  • Security
Permissions & RBACPayments & Billing