Forum Discussion
Multi Tenant Organization - one shared user not showing up in Global Address List
# Set the user's email
$userEmail = "email address removed for privacy reasons"
# Import Exchange Online Module (Ensure you have ExchangeOnlineManagement module installed)
Import-Module ExchangeOnlineManagement
# Connect to Exchange Online (Uncomment if not already connected)
# Connect-ExchangeOnline -UserPrincipalName "email address removed for privacy reasons"
Write-Host "🔹 Checking Address Book Policy (ABP) for $userEmail..."
$abp = Get-Mailbox -Identity $userEmail | Select-Object AddressBookPolicy
Write-Host "✅ ABP Assigned: $($abp.AddressBookPolicy)"
Write-Host "🔹 Checking if user is hidden from GAL..."
$hidden = Get-Recipient -Identity $userEmail | Select-Object HiddenFromAddressListsEnabled
Write-Host "✅ HiddenFromAddressListsEnabled: $($hidden.HiddenFromAddressListsEnabled)"
if ($hidden.HiddenFromAddressListsEnabled -eq $true) {
Write-Host "⚠️ User is hidden from GAL. Unhiding now..."
Set-Recipient -Identity $userEmail -HiddenFromAddressListsEnabled $false
}
Write-Host "🔹 Forcing GAL & Offline Address Book Update..."
Get-AddressList | Update-AddressList
Get-GlobalAddressList | Update-GlobalAddressList
Get-OfflineAddressBook | Update-OfflineAddressBook
Write-Host "🔹 Checking Azure AD Sync Status..."
$syncStatus = Get-MsolUser -UserPrincipalName $userEmail | Select-Object DisplayName, ImmutableId
Write-Host "✅ User Display Name: $($syncStatus.DisplayName),