Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

Prevent B2C user on B2B site - D365 eCommerce

(1) ShareShare
ReportReport
Posted on by 287

Hi All,

When setting up a B2B e-Commerce site, the steps are detailed here:

https://learn.microsoft.com/en-us/dynamics365/commerce/b2b/set-up-b2b-site 

Once a business partner prospect is approved, they are to sign-up for an account on the website noted in Step 11. here:

https://www.linkedin.com/pulse/customer-registration-process-dynamics-commerce-d365-b2b-shahani 

What is to prevent a user from navigating to the Sign-in/Sign-up page? Could a non-approved prospect not just navigate to the sign-in page and take the sign-up option?

  • Jritz Profile Picture
    Jritz 287 on at
    RE: Prevent B2C user on B2B site - D365 eCommerce

    "Additionally, if a B2C user does sign up, as he isn't linked to an approved prospect he will be treated as a retail customer. (No B2B specific features are available when he logs in)." 

    The final part of your response is actually what we would desire to happen. If a prospect is approved, they are able to have the B2B specific features and catalog prices, but if a prospect is not approved, we would like them to still be able to purchase from the site. However, it seems trying to have a regular B2C user on a B2B site causes site bugs. We actually have a support ticket in now because of this, and the same can be replicated on the test adventure work site.

  • Suggested answer
    JeevanG Profile Picture
    JeevanG 390 on at
    RE: Prevent B2C user on B2B site - D365 eCommerce

    HI,

    You can remove the sign-up option from AAD login page and only allow "approved" prospects to sign in by using custom sign in policies. The downside of this approach is that you have to manually manage new user creation.  

    User flows and custom policies in Azure Active Directory B2C - Azure AD B2C | Microsoft Learn

    Also, make sure that the authentication profiles used by the B2B and B2C sites are different to stop users from jumping from one site to another. 

    Additionally, if a B2C user does sign up, as he isn't linked to an approved prospect he will be treated as a retail customer. (No B2B specific features are available when he logs in). 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans