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