Log in
Repository

GroupRepositoryInterface

Magento\Customer\Api\GroupRepositoryInterface

What it does

This interface defines the contract for managing customer groups in Magento 2, providing CRUD (Create, Read, Update, Delete) operations.

Developers use this repository to programmatically create new customer groups, retrieve existing groups by ID or search criteria, update group information, and delete groups.

It's the standard way to interact with customer group data through Magento's service layer, commonly used in custom modules, data migrations, or API integrations.

Public Methods

  • save()
  • getById()
  • getList()
  • delete()
  • deleteById()