Magento 2 – B2B Blogs

Get Company Admin using company ID programmatically Magento 2 B2B

/home/jigar_karangiya/Downloads/Get Company Admin Using company id programatically.png

You can get Company admin Programmatically by getAdminByCompanyId( ) function from CompanyManagementInterface. Magento\Company\Api\CompanyManagementInterface Interface will be used to get Company Admin-related data from the Company in Magento 2. You need a Company id to achieve this. You can get assigned a company admin details programmatically by the below way, Using this way you can get the customer object …