The following error appears when trying set attribute "msExchHideFromAddressList":
The issue cannot be reproduced in Active Roles v6.9.
There is an existing Enhancement request #125877 to make this work in a future version of Active Roles 7.X, "As an administrator I should be able to update the msExchHideFromAddressLists for Exchange online mailbox (hybrid)".
As a workaround this could be customized using a script module in an onPreModify to check for that attribute. If it's being modified, remove it from the request and use the AD cmdlets or a direct ADSI call to AD to update it.
See sample below:
function onDeprovision($Request)
{
if ($Request.Class -ne "User"){return}
if ($Request.Get("msExchHideFromAddressLists") -eq $true){return}
$User = $Request.Get("DistinguishedName")
Set-ADUser -Identity $User -Replace @{msExchHideFromAddressLists = $true}
}
function onUnDeprovision($Request)
{
if ($Request.Class -ne "User"){return}
if ($DirObj.GetInfoEx(@("msExchHideFromAddressLists"),0) -eq $true){return}
$User = $Request.Get("DistinguishedName")
Set-ADUser -Identity $User -Clear msExchHideFromAddressLists
}
© 2025 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center