Set up SCIM with Okta
This guide explains how to configure System for Cross-domain Identity Management (SCIM) provisioning from Okta to dbdiagram. After setup, Okta can create, update, and deactivate dbdiagram users.
If you use a different identity provider and need help with configuration, contact our support team.
Prerequisites​
Before you configure provisioning, make sure SSO and the required administrator access are ready.
- SAML SSO with Okta is configured and tested.
- You are the workspace owner in dbdiagram and an administrator in Okta.
- Your dbdiagram plan has enough user licenses for the users you intend to provision. Existing users with matching email addresses are linked without consuming another license.
- You have decided which role (Admin, Editor, or Viewer) each user should receive in dbdiagram.
Add the custom role attribute before assigning users in Okta. If no role is set, users default to the Viewer role. Viewers cannot create diagrams or projects, so this can downgrade existing admins and editors, and lock admins out of managing the workspace.
Supported features​
Provisioning is one-way from Okta to dbdiagram. Manage synced users in Okta rather than editing them in dbdiagram.
| Feature | Supported | Description |
|---|---|---|
| Create users | Yes | Assigning a new user to the Okta app creates the user in dbdiagram. |
| Update user attributes | Yes | Changes to mapped profile attributes are pushed to dbdiagram. |
| Deactivate users | Yes | Unassigning or deactivating a user in Okta deactivates the user in dbdiagram without deleting their data. |
| Push groups | No | dbdiagram does not support user groups. |
| Import users from dbdiagram | No | dbdiagram does not act as a profile source for Okta. |
| Sync passwords | No | Users authenticate through SAML SSO; SCIM does not synchronize passwords. |
dbdiagram supports the email and displayName SCIM user attributes. Roles are assigned through a custom role attribute.
Configure provisioning​
Complete the dbdiagram configuration first so that you have the base URL and API token required by Okta. Then configure provisioning and assignments in the Okta application.
Step 1: Enable SCIM in dbdiagram​
Enabling SCIM creates tenant-specific credentials for your Okta connection.
- In dbdiagram, open Workspace's Settings > Single Sign-On.
- Turn on Enable SCIM Provisioning.
- Copy the SCIM Base URL.
- Note the Unique identifier field for users (
email). You will set the same field in Okta. - Click Generate token, then copy the SCIM API token. Store the token securely.
Treat the SCIM API token like a password. If you lose or expose it, rotate the token in dbdiagram and update Okta. Rotating a token invalidates the previous one.
Step 2: Configure the SCIM connection in Okta​
Use the base URL and API token generated by dbdiagram to authenticate Okta's provisioning requests.
-
In Okta, open the dbdiagram application and go to the General tab.
-
In App Settings, click Edit, set Provisioning to SCIM, then click Save.
-
Go to the Provisioning tab, select Integration, then click Edit.
-
Paste the SCIM Base URL copied from dbdiagram into SCIM connector base URL.
-
Enter
emailin Unique identifier field for users. -
Under Supported provisioning actions, select Push New Users and Push Profile Updates.
-
Set Authentication Mode to HTTP Header, then paste the SCIM API token copied from dbdiagram into Authorization.
-
Click Test Connector Configuration. After the test succeeds, click Save.
Step 3: Enable provisioning to dbdiagram​
Turn on the lifecycle actions that Okta should send to dbdiagram.
- In the Provisioning tab, go to Settings > To App.
- Click Edit.
- Enable Create Users, Update User Attributes, and Deactivate Users.
- Click Save.
Step 4: Add the custom role attribute in Okta​
The custom role attribute determines the dbdiagram role that each provisioned user receives. Users without a role value receive the Viewer role.
-
On the same To App page, scroll down to dbdiagram Attribute Mappings and click Go to Profile Editor.
-
In the Profile Editor, click Add Attribute.
-
Enter the following settings, then click Save:
Field Value Data type string Display name Workspace role Variable name role External name role External namespace urn:ietf:params:scim:schemas:extension:dbdiagram:2.0:UserEnum Select Define enumerated list of values Attribute members Admin: admin, Editor:editor, Viewer:viewerAttribute required No Attribute type Personal
Step 5: Verify attribute mappings​
Attribute mappings control which Okta profile values are sent for each dbdiagram user.
Back on the To App page, confirm these mappings in dbdiagram Attribute Mappings:
| Okta attribute | dbdiagram field | Purpose |
|---|---|---|
email | Email address | Uniquely identifies and links the user. |
displayName | Name | Sets the name displayed in dbdiagram. |
role | Role | Sets the role of the user in dbdiagram. |
The role attribute is hidden by default. Click Show Unmapped Attributes at the end of the attribute mappings table to show it.
Step 6: Assign users to dbdiagram​
Assign a small set of pilot users first. This limits the impact of configuration problems and lets you verify user roles before a wider rollout.
-
In Okta, open the dbdiagram application.
-
Go to the Assignments tab.
-
Click Assign > Assign to People.
-
Select the pilot users.
-
Review the profile attributes, select the Workspace role for each user, then click Save and Go Back.
-
Click Done.
Okta creates new users in dbdiagram and links existing users whose email addresses match. To deactivate a user in dbdiagram, unassign them from the Okta app. Their account is deactivated rather than deleted, so their data remain available.
Members created in your identity provider's dbdiagram app before enabling SCIM may not be synced automatically. Use the Assignments tab to sync them manually.
Verify provisioning​
Test each supported lifecycle action with the pilot users before assigning the rest of your organization.
-
In dbdiagram, open the workspace's members page and confirm that the pilot users appear with the expected names and roles.
-
In Okta, update a pilot user's display name and confirm that the change reaches dbdiagram.
-
Change the user's
rolevalue, then confirm that the role change reaches dbdiagram. -
Unassign a pilot user from the app and confirm that the user is deactivated in dbdiagram.
-
In the dbdiagram application in Okta, click View Logs and review the provisioning events for errors.
Okta syncs on its own schedule, so changes can take some time to appear. See how often your identity provider syncs. After the pilot succeeds, assign the remaining users.
SSO sign-in behavior​
SCIM provisions accounts but does not authenticate users. Sign-in, including SP-initiated SSO from dbdiagram, uses the separate SAML SSO integration with Okta.
A provisioned user must remain assigned to the dbdiagram application in Okta to authenticate. Their Okta email must also match the email in dbdiagram.
Troubleshooting​
Okta's logs usually contain the most useful details for failed provisioning requests. In the dbdiagram application in Okta, click View Logs to review the events related to the application.
The connector test fails​
If Test Connector Configuration fails, the base URL or token is likely missing, mistyped, or was replaced. Check the SCIM connector base URL, rotate the SCIM API token in dbdiagram if needed, and enter the new token in the Authorization field in Okta.
A user is not provisioned​
Confirm that the user is assigned to the dbdiagram application and that Create Users is enabled under Settings > To App in the Provisioning tab. Also check that the user's email is present and that your dbdiagram plan has an available user license. Provisioning fails rather than exceeding the user license limit.
A user has the wrong role​
Check that the user's role value is set in Okta and is one of the supported values (admin, editor, or viewer). Users without a role value receive the Viewer role.
A profile update does not appear​
Confirm that Update User Attributes is enabled and that the changed field is mapped under Settings > To App in the Provisioning tab. dbdiagram user attributes are not part of SCIM provisioning, so only supported SCIM profile fields are updated. A profile update may also be saved in dbdiagram but not yet displayed correctly. This is a known limitation.
A deactivated user can still sign in​
Confirm that Okta successfully sent the deactivation event and that it appears without errors in the logs. To deactivate a dbdiagram account, unassign the user from the dbdiagram application.
If the issue persists, contact dbdiagram support and include the Okta log error and its timestamp.