I want to add a tab on product view page in magento2.
That tab will only be visible if the customer belongs to a certain customer group.
Tabs are added via XML file, how can I create a custom handler in magento2 or use some condition on that.
Tabs on Product Detail Page are rendered in this file
Override this file in your theme/module
In this file $detailedInfoGroup contains the list of all tabs to be rendered. You can apply condition on this varibale to show your desired tabs.