Skip to main content
3 of 3
added 192 characters in body
Jeeva Chezhiyan
  • 1.5k
  • 3
  • 20
  • 39

Try this,

    $customerGroupsCollection = $objectManager->create('\Magento\Customer\Model\ResourceModel\Group\Collection');
    
    $customerGroupsCollection->addFieldToFilter('group_link',['eq'=>'thisisfreshgroup']);

    $collection = $customerGroupsCollection->getData();
    
    foreach ($collection as $value) {
       $customer_group_id[] = $value['customer_group_id'];
     }
    print_r($customer_group_id);
Jeeva Chezhiyan
  • 1.5k
  • 3
  • 20
  • 39