Set up SCIM with Microsoft Entra ID
This guide explains how to configure System for Cross-domain Identity Management (SCIM) provisioning from Microsoft Entra ID to dbdiagram. After setup, Microsoft Entra ID 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 Microsoft Entra ID is configured and tested.
- You are the workspace owner in dbdiagram and an administrator in Microsoft Entra ID.
- 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.
Users without a role, including users with the default Entra User role, are provisioned as Viewers. Viewers cannot create diagrams or projects, so this can downgrade existing admins and editors and lock admins out of managing the workspace. Complete Steps 2 to 4 before you enable provisioning in Step 7.
Supported features​
Provisioning is one-way from Microsoft Entra ID to dbdiagram. Manage synced users in Microsoft Entra ID rather than editing them in dbdiagram.
| Feature | Supported | Description |
|---|---|---|
| Create users | Yes | Assigning a user to the Entra app creates the user in dbdiagram. |
| Update user attributes | Yes | Changes to mapped profile attributes are pushed to dbdiagram. |
| Deactivate users | Yes | Removing a user's assignment, or deactivating the user, deactivates them 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 Microsoft Entra ID. |
| 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​
Step 1: Enable SCIM in dbdiagram​
- In dbdiagram, open Workspace's Settings > Single Sign-On.
- Turn on Enable SCIM Provisioning.
- Copy the SCIM Base URL, then click Generate token and copy the SCIM API token. Store the token securely. If you lose or expose it, rotate it in dbdiagram and update Microsoft Entra ID.
Step 2: Add app roles in Microsoft Entra ID​
Create one app role for each dbdiagram role.
-
In the Azure portal, search for App registrations, open it, then select the All applications tab and click the dbdiagram app.
-
In the left sidebar, expand Manage and click App roles.
-
Click + Create app role, fill out the form, then click Apply. The following example creates the Admin role.
-
Repeat for the Editor and Viewer roles, using these values:
Field Admin Editor Viewer Display name Admin Editor Viewer Allowed member types Users/Groups Value admineditorviewerDescription dbdiagram admin dbdiagram editor dbdiagram viewer Do you want to enable this app role? ✅
The App roles page now lists the three new roles, along with the default roles created by Microsoft Entra ID, such as User.
Step 3: Map the custom role attribute​
The custom role attribute is filled from each user's app role, and sets their role in dbdiagram.
-
In the Azure portal, search for Enterprise applications, then go to Manage > All applications and select the dbdiagram app.
-
In the left sidebar, expand Manage and click Provisioning.
-
Under Manage, click Attribute mapping, then click the Advanced options dropdown and select Edit ... user attributes.
-
Scroll to the bottom of the attribute list and click + Add new attribute, then fill:
- Name:
urn:ietf:params:scim:schemas:extension:dbdiagram:2.0:User:role - Type:
String
and click Save.
- Name:
-
Back on the Attribute mapping page, click + Add attribute mapping, enter the following settings, then click Add:
Field Value Mapping type Expression Expression SingleAppRoleAssignment([appRoleAssignments])Target attribute urn:ietf:params:scim:schemas:extension:dbdiagram:2.0:User:roleApply this mapping Always
-
Click Save to save the attribute mappings.
Step 4: Assign roles to users​
Users already assigned to the app usually have the default User role. Change it to Admin, Editor, or Viewer for each user. Choose a role the same way whenever you assign new users.
-
In the dbdiagram enterprise application, go to Manage > Users and groups.
-
Select the users whose role you want to change, then click Edit assignment.
-
Under Select a role, click None Selected, choose a role, click Select, then click Assign.
Step 5: Configure the SCIM connection in Microsoft Entra ID​
- In the dbdiagram enterprise application, go to Provisioning > Manage > Connectivity.
- Select Bearer authentication, paste the SCIM Base URL into Tenant URL, and paste the SCIM API token into Secret token.
- Click Test connection. After the test succeeds, click Save.
Step 6: Test with pilot users​
Test a few users before enabling provisioning for everyone.
- In the dbdiagram enterprise application, go to Provision on demand.
- Select a user who is already assigned to the app, then click Provision.
- If provisioning fails, review the error details. If it succeeds, check the workspace's members page in dbdiagram for the user and their role.
Step 7: Enable automatic provisioning​
- In the dbdiagram enterprise application, go to Manage > Provisioning.
- In Mappings, click Provision Microsoft Entra ID Users and check that Create, Update, and Delete are all selected under Target Object Actions. These control creating, updating, and deactivating users.
- Optionally, disable the Provision Microsoft Entra ID Groups mapping. dbdiagram does not support groups, so it has no effect either way.
- Back on the Provisioning page, set Provisioning Status to On, then click Save.
Verify provisioning​
- In dbdiagram, open the workspace's members page and confirm that users appear with the expected names and roles.
- In Microsoft Entra ID, change a user's display name or app role and confirm that the change reaches dbdiagram.
- Remove a user's assignment and confirm that the user is deactivated in dbdiagram.
Microsoft Entra ID syncs on its own schedule, so changes can take some time to appear. See how often your identity provider syncs. To check a change immediately, use Provision on demand.
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 Microsoft Entra ID. A provisioned user must remain assigned to the dbdiagram application in Microsoft Entra ID, and their email must match the email in dbdiagram.
Troubleshooting​
Start with the provisioning logs of the dbdiagram enterprise application in Microsoft Entra ID, which usually contain the details of a failed request.
The connection test fails​
The Tenant URL or secret token is likely missing, mistyped, or was replaced. Check the Tenant URL, rotate the SCIM API token in dbdiagram if needed, and enter the new token in Secret token.
A user is not provisioned​
Confirm that the user is assigned to the dbdiagram application and that Create is selected in the Provision Microsoft Entra ID Users mapping (Step 7). Also check that the user's email is present and that your 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 has an Admin, Editor, or Viewer app role (Step 4) and that the role attribute mapping is saved (Step 3).
A profile update does not appear​
Confirm that Update is selected in the Provision Microsoft Entra ID Users mapping (Step 7) and that the changed field is mapped under Provisioning > Attribute mapping. 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 Delete is selected in the Provision Microsoft Entra ID Users mapping (Step 7) and that the deactivation event appears without errors in the provisioning logs. To deactivate a dbdiagram account, remove the user's assignment from the dbdiagram application.
If the issue persists, contact dbdiagram support and include the Microsoft Entra ID provisioning log error and its timestamp.