Skip to main content

B2B Multi-Tenant SSO: Organizations, Verified Domains, Auto-Join

Create one organization per business customer, verify their domain, and turn on Auto-join so verified addresses join with your default role. Send their IT admin a 7-day setup link. The first 50,000 active users a month are free.

B2B Multi-Tenant SSO: Organizations, Verified Domains, Auto-Join

Contents

In this guide

Jump to the part you need.

This guide is for B2B software teams whose customers need their own people, roles and identity provider inside your product. Create one organization per business customer, with members, roles, invitations and a verified email domain. With Auto-join on, people who sign in with a verified email address at that domain join with your default role. The first 50,000 active users each month are free. SSO setup links need Scale or Enterprise in live applications; every Sandbox application has them.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

B2B organizations with SSO and verified-domain Auto-join at a glance
QuestionAnswer
What you set upOne organization per business customer, with members, roles, invitations, verified email domains with Auto-join, and its own SAML or OIDC single sign-on.
Who does whatYour team creates organizations in the console. The customer's IT admin adds a DNS TXT record and finishes SSO through a setup link.
Where it livesBusiness Console at Authentication > Organizations. The list counts organizations, members, SSO connections and verified domains above it.
Plan neededSSO setup links and custom roles require the Scale or Enterprise plan in live applications. Every Sandbox application includes them.
Authentication priceThe first 50,000 active users each month are free, then $0.02 per active user per month at list price. Live plan requirements are separate.
Identity checksBilled separately: full KYC $0.33 per check, business verification (KYB) from $2.00 per company.
Main caveatA domain can Auto-join only one organization of your application, and a setup link expires after seven days.

Start free in the sandbox at business.didit.me. There is no sales call. Developers can connect Didit to an AI assistant through the Didit MCP server.

The result: one tenant object per business customer

We provide organizations inside Didit Authentication so your B2B application can group users by the company they work for. An organization is one of your customers, inside your application. It is separate from your Didit organization, which holds your own team in the Business Console. Once you turn organizations on, the console gives you:

  • New organization, with a name and a slug that is unique in the application.
  • A logo per organization, shown in the list, on the organization page and on the hosted approval screen where people choose the organizations an agent may use. No logo means the first letter of the name.
  • Members and roles: admin, member (the default) and billing, plus custom roles with their own permission keys on Scale, Enterprise and in every Sandbox application.
  • Invitations by email, up to 20 addresses at a time, with the role the invitations grant.
  • Verified domains with Auto-join, so a colleague with a verified address at the customer's domain joins without an invitation.
  • Company single sign-on with SAML or OIDC, configured by the customer's IT admin through a setup link.

Your application reads the person's organizations and roles from their token and session, then decides what each role may do. We do not make your authorization decisions for you, and we do not yet let people create their own organizations from your app. The technical reference is the Didit Authentication documentation overview, and the Didit Authentication product page shows what the product covers before you configure it.

Prerequisites

What you need before the first organization
RequirementDetail
PlanSSO setup links and custom roles require the Scale or Enterprise plan in live applications. Every Sandbox application includes them.
ApplicationA Didit application with Authentication configured. Use a sandbox application first: its issuer is https://<name>.sandbox.auth.didit.me, separate from live, with separate keys.
Console permissionThe authentication permission at read to view the section and at write to change it.
API credential (optional)An API key of the application, full access or scoped to the authentication resource at write; or an owner-approved grant with didit:management; or a console session.
Customer sideAn IT admin who can add a DNS TXT record at _didit-auth.<domain> and configure their identity provider.

Setup in seven steps

1. Turn organizations on for the application

Open Authentication > Organizations in the Business Console and find the Settings card. Turn on Organizations. Choose the Default role for new members, the role people get when they join through a verified domain or single sign-on (member unless you change it). Leave Require MFA for organization admins on. That switch is the organization_admins MFA policy: anyone who holds admin in any organization of your application must enroll a second factor, and GET /session/ stops accepting their session until the session meets the policy again. You can change the policy under Authentication > Security and sessions.

2. Create the organization and give it a logo

Choose New organization, enter the customer's name and a slug that is unique in the application. Open the organization and choose Upload logo: a PNG, JPEG or WEBP up to 2 MB, and a square image looks best. Change logo and Remove logo sit in the same place. The organization list shows each customer's members, verified domains, single sign-on status, MFA rule and creation date, and the key metrics above it count organizations, members, SSO connections and verified domains.

3. Invite the first members

Choose Invite member, enter up to 20 email addresses and choose the role for the invitations: admin, member or billing. We email each invitation. An invitation lasts 7 days and opens the hosted /invite page on your sign-in origin, where the person signs in or creates an account and joins. The organization's Invitations list shows when each one expires, with Resend and Revoke.

4. Verify the customer's email domain and turn on Auto-join

Add the domain to the organization. Add the TXT record Didit shows at _didit-auth.<domain> with the customer's DNS provider, containing the verification token. Check the domain. It shows as Verified once the record is found. If the domain stays unverified, check the TXT record's name and value against the console, then check the domain again.

With Auto-join on for a verified domain, a person who signs in with a verified email address at that domain joins the organization automatically, with your default role. A domain can Auto-join only one organization of your application.

5. Turn on the sso sign-in method for the application

Enable the application's SSO sign-in method before testing company SSO on the hosted sign-in page. Each customer's setup link configures that organization's connection. The sso method setting makes organization SSO available on hosted sign-in. Use the same call shape as any other method on the Authentication management API:

curl --fail-with-body --request PUT "${MANAGEMENT_BASE}methods/sso/" -H "x-api-key: $DIDIT_API_KEY" -H 'Content-Type: application/json' -d '{"enabled": true}'

MANAGEMENT_BASE is https://apx.didit.me/auth/v2/organizations/{org_id}/applications/{application_id}/authentication/. A full-access API key of the application covers it; a scoped key needs the authentication resource at write. An owner-approved grant with didit:management also works, and that is the grant an AI assistant connected to the Didit MCP server uses.

Cover of the Didit Academy video showing how to use Didit with an MCP client
An assistant connected over MCP can call the Authentication management API with the grant its owner approved, which is how you can script sign-in method setup.

6. Hand the IT admin the SSO setup link

In the organization's Single sign-on card, choose Copy setup link and send it to the customer's IT admin through a secure channel. The link works for seven days and walks them through the SAML or OIDC connection. The SAML service provider metadata is published at {origin}/sso/saml/metadata/. The hosted sign-in page finds the connection from the person's verified email domain, from Use single sign-on, or from organization=<slug> on the sign-in URL. The organization list shows whether each connection is active, not set up, or waiting on a setup link that was sent. People who sign in through the customer's identity provider join the organization with your default role. The configuration fields of each protocol are in the sign-in methods documentation.

7. Read the organization and role in your app

Your app reads the person's organizations and roles from their token and session, and your backend makes every decision from a verified token. Verify the access token with the issuer's JWKS (ES256, then iss, aud, exp and typ: at+jwt). Reject access tokens with a non-null act claim unless the route accepts AI agents. Check membership and the required role in the organization the request targets. Check GET /session/ before a sensitive action. The token rules are in Tokens and JWKS, and the production checklist is in the Authentication integration guide.

Organization fields and settings

What the organization gives you and where it belongs in your application
Didit field or objectExampleWhat your app does with it
Organization slugacmeUnique within the application. Pass it as the organization parameter on the hosted sign-in URL.
Roleadmin, member, billingRoute and action authorization. A person can belong to several organizations with one role in each.
Custom role permissionpayouts.approveFine-grained checks on top of the base role. Custom roles exist on Scale and Enterprise, and in every Sandbox application.
Default role for new membersmemberThe role applied when someone joins by verified domain or by company single sign-on.
Verified domainacme.com with TXT at _didit-auth.acme.comThe Auto-join source. One domain can Auto-join one organization.
Auto-join switchonLets a verified address at that domain join the organization without an invitation.
SSO connection statusactive, not set up, waiting on a setup linkCheck the connection in the Business Console's organization list.
MFA policyorganization_adminsSecond factor for every admin. GET /session/ fails until the session meets the policy again.

Test with sandbox data

Work in a sandbox application until the whole flow is proven. Its issuer is https://<name>.sandbox.auth.didit.me, its keys are separate from live, and it includes every plan's features, so custom roles and setup links are available whatever live plan your application uses.

  1. Create a test organization named after your own company, with a slug you will recognize, and upload a square logo.
  2. Invite one address you control as admin and accept the invitation within the 7 day window from the hosted /invite page.
  3. Add a domain you own, publish the TXT record at _didit-auth.<domain>, check it, and confirm the list shows Verified.
  4. Turn Auto-join on, then sign in with a second verified address at that domain and confirm it lands in the organization with the default role.
  5. Open Copy setup link, complete a test SAML or OIDC connection, and complete a hosted SSO sign-in. Confirm the person joins with the default role.
  6. Call a protected endpoint that targets another organization with the same session. Confirm it refuses the request because the user has no membership there.
  7. Call GET /session/ for an admin who enrolled a factor and confirm it answers. Confirm it refuses an admin who did not enroll.
A six digit email code being entered on a Didit sign in screen
To test Auto-join, sign in with a verified email address at the verified domain after switching Auto-join on. Confirm the person joins with the default role.
Common setup problems and fixes
What you seeCauseFix
Domain stays unverifiedTXT record missing, on the wrong host, or not yet visibleCheck the TXT record's name and value against the console, then check the domain again.
Colleague joins the wrong organizationThat domain already Auto-joins another organizationA domain can Auto-join only one organization. Choose which organization receives automatic membership for that domain, and use invitations for people who need access to another organization.
Setup link no longer worksThe link was copied more than seven days agoCopy a new setup link from the organization's Single sign-on card and send it securely.
400 {"error": "mfa_required"}The sign-in did not meet your MFA policy.Start sign-in again and complete the required MFA. If the sign-in flow requires enrollment, enroll an authenticator. Exchange the new authorization code at POST token/ within 60 seconds.
403 on a setup routeToken from POST /programmatic/login, a scoped key without the authentication scope, a key of another application, or a grant approved for another organizationUse the application's own key with the authentication resource, an owner-approved didit:management grant, or a console session.
401 on a setup routeNo credential at allSend x-api-key or a bearer token.

Stop new members from joining through domains and invitations

To stop a customer's new members from joining through its domain or invitations, do two things. These steps address new joins through those two routes.

  • Turn Auto-join off for the verified domain so new colleagues stop joining on their own.
  • Revoke pending invitations in the organization's Invitations list.

What it costs

Authentication is billed per active user: the first 50,000 active users each month are free, and each active user after that costs $0.02 per active user per month at list price. SSO setup links and custom roles need the Scale or Enterprise plan in live applications, and every Sandbox application includes them. Live plan fees, credits and any identity checks are separate. Unit prices are on the pricing page.

Identity checks are separate line items, and B2B onboarding often means business verification: KYB from $2.00 per company, company AML $0.20 per check, person AML $0.20 per UBO, and a linked full KYC at $0.33 per person.

At 80,000 monthly active users, 30,000 are billable after the 50,000-user allowance. At $0.02 each, that is $600 in monthly Authentication usage at list price, before plan discounts or credits. Sandbox testing is free. Live plan fees, credits and any identity checks are separate.

Cover of the Didit Academy video explaining credits, auto-recharge and volume discounts
How billing works: per completed check from prepaid credit, with plan credit added every month and top-ups valid for 12 months.

Sources

Next step: open the console at business.didit.me, create a sandbox application, and turn on Organizations. No sales call is needed to set up a customer, verify a domain or hand out a setup link, and the first 50,000 active users each month are free.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How does verified domain Auto-join work in Didit Authentication?

The customer adds a TXT record at _didit-auth.<domain> containing the token the console shows, and the domain shows as Verified once that record is found. With Auto-join on for a verified domain, a person who signs in with a verified email address at that domain joins the organization automatically, with your default role. No invitation is needed.

Can one email domain Auto-join more than one organization?

A domain can Auto-join only one organization in your application. Choose which organization receives automatic membership for that domain, and use invitations for people who need access to another organization.

Which roles can members of an organization hold?

Every organization uses three roles: admin for people who manage it in your app, member for everyone else and the default, and billing for people who handle its billing. On Scale and Enterprise plans, and in every Sandbox application, you can also define custom roles. Each custom role has its own key and a set of permissions your app checks, such as payouts.approve. A member can hold a custom role alongside their base role.

Which plans include SSO setup links and custom roles?

SSO setup links and custom roles require the Scale or Enterprise plan in live applications. Every Sandbox application includes them, so you can test before upgrading.

How long does an SSO setup link last, and who uses it?

A Didit organization's SSO setup link lasts seven days. You copy it from the organization's Single sign-on card and send it securely to the customer's IT admin, who works through the SAML or OIDC connection themselves. The organization list then shows whether the connection is active, not set up, or waiting on a setup link that was sent.

How much does B2B multi-tenant SSO cost in Didit?

The first 50,000 active users each month are free, then $0.02 per active user per month at list price. SSO setup links and custom roles need the Scale or Enterprise plan in live applications, and every Sandbox application includes them. Identity checks such as KYC at $0.33 and KYB from $2.00 per company are billed separately when you run them.

How does Didit find the right SSO connection when someone signs in?

The hosted sign-in page finds the connection from the person's verified email domain, from Use single sign-on, or from organization=<slug> on the sign-in URL. The SAML service provider metadata is published at {origin}/sso/saml/metadata/. People who sign in through the customer's identity provider join the organization with your default role.

What happens to an admin's session when MFA is required?

Under the default organization_admins policy, anyone who holds admin in any organization of your application must enroll a second factor. GET /session/ stops accepting their session until it meets the policy again. You can change the policy under Authentication > Security and sessions, or with mfa_policy in the application settings.

Can people create their own organizations from my app?

Not yet. Organizations are created by your team in the console with New organization, including the name and a slug that is unique in the application. People then join by invitation, by verified domain Auto-join, or by the customer's single sign-on connection.

What is the difference between a customer organization and my Didit organization?

A customer organization belongs inside your application and holds your customer's members, roles, domains and SSO connection. Your Didit organization is the team that holds your own applications in the Business Console, with its own plan, billing and permissions.

How do I test Auto-join and SSO before going live?

Use a sandbox application: its issuer is https://<name>.sandbox.auth.didit.me, with keys separate from live and every plan's features included. Create a test organization, verify a domain you own, turn Auto-join on, sign in with a second address at that domain and confirm the membership and role. Then complete a test connection from a setup link, complete a hosted SSO sign-in, and check a protected endpoint for a second organization with the same user.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.