Search Results :

×

How to automatically assign B2B users to the correct Shopify company (domain-based)?

Automatically assigning B2B customers to the right company in Shopify B2B (Shopify Plus) reduces manual work and helps wholesale buyers reach the correct catalogs, pricing, and payment terms as soon as they sign in. With email domain–based company assignment, users who authenticate with a verified business email can be linked to the matching Shopify company profile without admins mapping every contact by hand.

The miniOrange Shopify B2B Customer Login solution extends Shopify’s customer accounts so you can define domain → company rules, support multiple domains per company, and combine assignment with email-password, OTP, SSO, or custom registration flows, while staying aligned with Shopify Plus B2B companies and contacts.

Shopify Plus Store With B2B Enabled

  • You need to have a Shopify Plus store with B2B enabled.
  • Log in to Shopify Admin on your Plus store.
  • Confirm B2B is turned on and you can access Customers → Companies as needed.

miniOrange SSO Application Installed

  • Log in to your Shopify Admin.
  • Go to AppsShopify App Store
  • Search for miniOrange Single Sign-On – SSO
  • Click Get this application to add the app to your store
  • Open the app from Apps to start Shopify B2B User Assignment configuration
  • Go to your Shopify store and navigate to the App section and click on Single Sign On - SSO login application.
Shopify B2B in Single Sign-On (SSO) - Configure Application

  • Click on the B2B tab in the left navigation menu.
Shopify B2B in Single Sign-On (SSO) - Navigate to B2B Option

  • Click on the Setup button in the Setup B2B section.
Shopify B2B in Single Sign-On (SSO) - select Setup B2B

  • Click on the Generate Token button to generate the Storefront Access Token. Click on Save and then click on Next.
Shopify B2B in Single Sign-On (SSO) - Paste Storefront Access Token

  • You will be redirected to the B2B Settings page. Configure the login screen as per your requirements.
  • You can choose from multiple login options (User Sign-Up, Email OTP Login, and Phone OTP Login) to add to your Shopify B2B store’s login page.
  • Click on Save.
Shopify B2B in Single Sign-On (SSO) - Enable User Signup

  • The end user will see all the login options enabled above on the Shopify B2B Store login screen.
Shopify B2B in Single Sign-On (SSO) - End User login Screen
  • On the left, click on B2B. In the Configure B2B Features section, click on Configure.
miniOrange B2B Configure B2B Features screen for company provisioning setup

  • In the B2B Company Settings tab, enable the toggle of Assign End Users to Company in Real Time (Company Provisioning) to automatically associate users with an existing company based on their email domain when they log in.
Toggle Assign End Users to Company in Real Time company provisioning enabled

  • After enabling the toggle, click on Save.
  • After saving, a confirmation message saying “B2B configurations saved” will appear.
  • Important: For this feature, we need to add the company’s domain in Shopify under their Company metafield.

  • Navigate to the Shopify Dashboard >> Customers >> Companies.
Shopify admin Customers Companies list for B2B company records

  • In the Metafields section, click on the View All link.
Company profile Metafields section with View All link in Shopify admin

  • In the company metafields section, you can add one or more B2B company email domains associated with a company or organization.
Company metafields editor adding B2B email domains for provisioning
  • Now, connect your Shopify store to the miniOrange SSO application.
  • In Customer Accounts Setup step, take note the following details: Discovery Endpoint URL, Client ID, Client Secret, additional scopes, and Redirect URI.
  • Note: You can also find this metadata under Connect Store in the left-hand section, as shown below.
miniOrange Connect Store OAuth Client ID secret discovery URL and scopes

  • Navigate back to the Shopify dashboard, and click on Settings.
Shopify admin Settings sidebar for customer account configuration

  • Under Customer Accounts, click the Manage button in the Authentication section.
Customer accounts Authentication Manage button in Shopify Settings

  • Click on Manage providers.
Customer accounts Manage providers list for identity providers

  • Click on the Connect to Provider button.
Connect to Provider button on Shopify customer account authentication screen

  • Enter a suitable identity provider name.
Identity provider name field for custom OIDC provider setup

  • Enter the required details, Discovery Endpoint URL, Client ID, Client Secret, additional scopes, redirect URI, into their respective fields shown below.
OIDC provider form with discovery URL client ID secret and redirect URI

  • Click the Test Connection button to verify the connection.

So, by implementing domain-based company assignment feature, Shopify B2B stores can automate user-to-company mapping efficiently. This reduces manual effort, minimizes errors, and ensures that customers are immediately granted access to the correct company resources, such as catalogs, pricing, and permissions, creating a smooth and streamlined login experience.


Yes. With the miniOrange Shopify B2B Customer Login solution, you can configure multiple email domains for a single Shopify B2B company. This allows you to map domains for different brands, regions, or subsidiaries to the same company profile.

To enable this, simply add multiple domains in the Shopify company metafields and configure domain-based rules in the miniOrange app. When users log in using any of the mapped domains, they are automatically assigned to the correct company in real time.

If a customer logs in with an email domain that is not mapped to any Shopify B2B company, the miniOrange Shopify B2B Customer Login solution allows you to control how the user is handled.

You can configure actions such as restricting access, allowing the user to submit a company registration request, or routing the request for admin approval. Once approved or mapped to a company, the user can be automatically assigned and granted the appropriate B2B access.

Yes. The miniOrange Shopify B2B Customer Login solution is fully compatible with Shopify Plus B2B companies, contacts, catalogs, and price lists.

It integrates directly with your existing Shopify B2B setup, so when a user is automatically assigned to a company based on their email domain, they immediately inherit the correct catalogs, pricing, permissions, and checkout rules defined in Shopify. This ensures a seamless and consistent B2B buying experience without requiring additional configuration.

 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again


ADFS_sso ×
Hello there!

Need Help? We are right here!

support