Log in
Interface

GroupManagementInterface

Magento\Customer\Api\GroupManagementInterface

What it does

This interface defines the contract for managing customer groups in Magento 2.

Developers use this to retrieve different types of customer groups (default, logged-in, not logged-in, all customers) and to check if a group can be deleted.

It's commonly used when implementing custom pricing, promotions, or access control based on customer group membership.

Public Methods

  • isReadonly()
  • getDefaultGroup()
  • getNotLoggedInGroup()
  • getLoggedInGroups()
  • getAllCustomersGroup()