Forum Discussion
Lefty
Feb 18, 2025Tin Contributor
Multi Tenant Organization - one shared user not showing up in Global Address List
I set up a multitenant organization with two tenants. Overall it seems right, users can find each other and chat fairly seamlessly on teams, and shared users appear on the opposite global address li...
Ahmed_Masoud97
Feb 20, 2025Steel Contributor
# 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),