---
schema_version: "1"
id: a023ee70c2b7cef8994c2839c91d247cd492e8c83c2a4b1120fc866f9566efd6
title: Buyer Group Extension
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/comm_buyer_group_extensibility.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.comm_buyer_group_extensibility.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 304955ba24f663ff3b56eaa31607ced03ab94ea9328cb48b18ac99f9421e299d
description: Dynamically assign buyers to buyer groups for a B2B store by using a custom Apex logics. Review the considerations to understand the factors that influence how these assignments take place in your store.
products:
  - Commerce
  - B2B Commerce
release: "264"
---
# Buyer Group Extension

Dynamically assign buyers to buyer groups for a B2B store by using a custom Apex logics. Review the considerations to understand the factors that influence how these assignments take place in your store.

[Which Salesforce Commerce Product Do I Have?](https://help.salesforce.com/s/articleView?id=commerce.comm_what_product.htm&language=en_US)

- **[Considerations for Buyer Group Extension](https://help.salesforce.com/s/articleView?id=commerce.comm_buyer_group_extensibility_considerations.htm&release=264.0.0&type=5)**  
    As you turn on buyer group extension, keep these considerations in mind.
- **[Dynamically Assign Buyer Groups by Using Apex Logics](https://help.salesforce.com/s/articleView?id=commerce.comm_buyer_groups_using_apex_logics.htm&release=264.0.0&type=5)**  
    Dynamically assign guest and authenticated buyers to buyer groups for a B2B store by using custom Apex logics. When buyers visit the store pages, the Apex logic adds them to a buyer group based on the defined criteria. Assigning buyers dynamically when they visit a storefront ensures timely, personalized shopping experiences including targeted product visibility, pricing, and promotions, without manual intervention.
- **[Create a Shareable URL for Your Store](https://help.salesforce.com/s/articleView?id=commerce.comm_shareableurl.htm&release=264.0.0&type=5)**  
    Customers can use a shareable URL to access your B2B store. The shareable URL contains a special URL parameter that's associated with a buyer group that has its own price book and discounts. Customers who get to the store using the shareable URL are automatically assigned to the associated buyer group, either in addition to the buyer group the customer is already part of or instead of that buyer group, depending on how your developer set up buyer group extensions.