0

How to load all customers by a specific customer group in magento 2?

2
  • do know the group id of customers you want to load? Jun 12, 2017 at 9:44
  • yes i know group id.
    – umair ayub
    Jun 12, 2017 at 9:59

1 Answer 1

0

You can get it as by below.

$customer = $this->customer->getCollection()->addFieldToFilter('group_id', $groupId);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.