Using the WorkOS integration with Schematic, you can:
This integration allows you to extend identity with entitlements and our library of embeddable UI components for end-to-end purchasing experiences and plan management.
Using WorkOS and Schematic together allows you to build identity and pricing and packaging into your applications without toiling over extensive homegrown solutions, from log in to checkout.
You can set up the WorkOS integration in the Integrations tab within Schematic.
Once there, do the following:
organization.created, organization.updated, organization.deletedorganization_membership.created, organization_membership.updated, organization_membership.deleteduser.created, user.updated, user.deletedOnce you’re connected, Schematic will import organizations, users, and memberships from WorkOS. A workos_organization_id will be added as a unique key to companies, and a workos_user_id will be added as a unique key to users along with an additional key, email. The following data will be imported and kept up-to-date automatically:
On initial import, if an organization or user in Schematic already exists with a workos_organization_id or workos_user_id that matches data from WorkOS, the record will simply be updated.
You will now be able to assign entitlements and enforce them in your application using Schematic flags, features, and plans.
If you’ve already setup WorkOS manually and can easily switch to Schematic’s Native WorkOS integration.
To avoid duplicating companies and users in Schematic, you’ll want to make sure that your Schematic companies have a workos_organization_id key set to the organization id from WorkOS. Likewise, Schematic users need to have a workos_user_id set to the user id from WorkOS.
If you currently use different key names, the migration approach is:
workos_organization_id and workos_user_id to your companies and usersSimilar to WorkOS’s UI components, Schematic offers drop-in components for end-to-end purchasing experiences and plan management.
Once you’ve imported organizations and users and you’ve built out your packaging model in Schematic, you can navigate to the Components tab in Schematic to design, customize, and deploy Customer Portals.
When Schematic Components are embedded in your application, they will be aware of the identity of the logged in user and serve the appropriate data and controls.
