SOLVED

Cannot uncheck "Hide from address list" for users

Copper Contributor

Hi. Recently an employee who has left before has returned to the company and we'd like to re-activate it's exchange user. When she left, we first removed her license in Office 365, then we disabled her account in on-prem active directory. After that we hide her mailbox from the address list and at last we convert her mailbox to a shared mailbox. (I know you should convert mailbox to shared mailbox first then remove license but that was not done be me :( ) 

 

Now we tried to re-enable her mailbox and user again but we've found that when we uncheck the "Hide from address lists" checkbox, an error will be shown saying that:

"The operation on mailbox "User" failed because it's out of the current user's write scope. The action 'Set-Mailbox', 'HiddenFromAddressListEnabled', can't be performed on the object 'User' because the object is being synchronized from your on-premises organization. This action should be performed on the object in your on-premises organization."

 

But the problem is, the environment is not a hybrid environment and we only uses Azure AD Sync to sync the user to Azure. We can't find "msExchHideFromAddressLists" in the user's attribute editor in the on-prem AD. (Probably due to the fact that we don't have an on-prem exchange server). We've been looking for a way to un-hide the user from address list for a few days but still no luck. Does anyone knows how can we fix it? Thanks.

 

 

2 Replies
best response confirmed by CUCOOPE (Copper Contributor)
Solution
Every scenario that involves AAD Connect (dirsync) requires you to have at least one Exchange server on-premises, for management purposes. Reason behind this is, that the only supported way to manage Exchange objects and attributes, including those in Exchange Online, is via the Exchange tools.
In your case, at the very least you need to extend the on-premises schema with the Exchange attributes. After doing so, you can manage msExchHideFromAddressLists and other Exchange-related attributes via ADSI Edit, PowerShell, or whichever tool you prefer. Make sure to refresh the AAD Connect schema (newer versions should do this automatically). And keep in mind that this is still not considered a *supported* scenario though.
Thanks a lot!
1 best response

Accepted Solutions
best response confirmed by CUCOOPE (Copper Contributor)
Solution
Every scenario that involves AAD Connect (dirsync) requires you to have at least one Exchange server on-premises, for management purposes. Reason behind this is, that the only supported way to manage Exchange objects and attributes, including those in Exchange Online, is via the Exchange tools.
In your case, at the very least you need to extend the on-premises schema with the Exchange attributes. After doing so, you can manage msExchHideFromAddressLists and other Exchange-related attributes via ADSI Edit, PowerShell, or whichever tool you prefer. Make sure to refresh the AAD Connect schema (newer versions should do this automatically). And keep in mind that this is still not considered a *supported* scenario though.

View solution in original post