Skip to main content

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.
Configure the custom role attribute before syncing users

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.

FeatureSupportedDescription
Create usersYesAssigning a new user to the Okta app creates the user in dbdiagram.
Update user attributesYesChanges to mapped profile attributes are pushed to dbdiagram.
Deactivate usersYesUnassigning or deactivating a user in Okta deactivates the user in dbdiagram without deleting their data.
Push groupsNodbdiagram does not support user groups.
Import users from dbdiagramNodbdiagram does not act as a profile source for Okta.
Sync passwordsNoUsers 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.

  1. In dbdiagram, open Workspace's Settings > Single Sign-On.
  2. Turn on Enable SCIM Provisioning.
  3. Copy the SCIM Base URL.
  4. Note the Unique identifier field for users (email). You will set the same field in Okta.
  5. Click Generate token, then copy the SCIM API token. Store the token securely.
dbdiagram SCIM settings
Keep the SCIM token secure

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.

  1. In Okta, open the dbdiagram application and go to the General tab.

  2. In App Settings, click Edit, set Provisioning to SCIM, then click Save.

    Okta app settings with SCIM provisioning selected
  3. Go to the Provisioning tab, select Integration, then click Edit.

  4. Paste the SCIM Base URL copied from dbdiagram into SCIM connector base URL.

  5. Enter email in Unique identifier field for users.

  6. Under Supported provisioning actions, select Push New Users and Push Profile Updates.

  7. Set Authentication Mode to HTTP Header, then paste the SCIM API token copied from dbdiagram into Authorization.

  8. Click Test Connector Configuration. After the test succeeds, click Save.

SCIM connection settings for the dbdiagram app in Okta

Step 3: Enable provisioning to dbdiagram​

Turn on the lifecycle actions that Okta should send to dbdiagram.

  1. In the Provisioning tab, go to Settings > To App.
  2. Click Edit.
  3. Enable Create Users, Update User Attributes, and Deactivate Users.
  4. Click Save.
Create, update, and deactivate user provisioning actions enabled in Okta

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.

  1. On the same To App page, scroll down to dbdiagram Attribute Mappings and click Go to Profile Editor.

    Go to Profile Editor button in the dbdiagram attribute mappings
  2. In the Profile Editor, click Add Attribute.

    Okta Profile Editor for the dbdiagram user
  3. Enter the following settings, then click Save:

    FieldValue
    Data typestring
    Display nameWorkspace role
    Variable namerole
    External namerole
    External namespaceurn:ietf:params:scim:schemas:extension:dbdiagram:2.0:User
    EnumSelect Define enumerated list of values
    Attribute membersAdmin: admin, Editor: editor, Viewer: viewer
    Attribute requiredNo
    Attribute typePersonal
    Add custom role attribute in Okta

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 attributedbdiagram fieldPurpose
emailEmail addressUniquely identifies and links the user.
displayNameNameSets the name displayed in dbdiagram.
roleRoleSets the role of the user in dbdiagram.
note

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.

  1. In Okta, open the dbdiagram application.

  2. Go to the Assignments tab.

  3. Click Assign > Assign to People.

    Assign users to the dbdiagram application in Okta
  4. Select the pilot users.

  5. Review the profile attributes, select the Workspace role for each user, then click Save and Go Back.

    Select the Workspace role when assigning dbdiagram to a person in Okta
  6. 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.

note

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.

  1. In dbdiagram, open the workspace's members page and confirm that the pilot users appear with the expected names and roles.

  2. In Okta, update a pilot user's display name and confirm that the change reaches dbdiagram.

  3. Change the user's role value, then confirm that the role change reaches dbdiagram.

  4. Unassign a pilot user from the app and confirm that the user is deactivated in dbdiagram.

  5. In the dbdiagram application in Okta, click View Logs and review the provisioning events for errors.

    View Logs button on the dbdiagram application in Okta

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.