There may be times when you want to hide external contacts from the GAL. For example, you may only want external contacts to be part of distribution groups. The mechanism for hiding external contacts depends on whether they are in the cloud or onpremises contacts that are being synchronized to ExchangeOnline using DirSync