How do I Hide/UnHide a 'Synced' User from the Office 365 Address list

I've recently installed ADConnect and started Office 365 from on-premise.  I previously created O365 users with a scirt and set them to 'hide/unhide' from address list.  Now the O365 GUI and powershell can't manage O365 directly anymore.  Forums suggest using the attribte msExchHideFromAddressLists (local AD) attribute (TRUE/FALSE) -- this isn't having any effect.  I've also seems use SHOWINADDRESSLIST (local AD) attribute.  SHOWINADDRESSLIST  complains about values I've attemted - true/fale,global address list, etc..  What is appropriate value for the field.  It's currently 'not set'.  Toggling msExchHideFromAddressLIsts seems to have no effect either way.  I have a user a need unhidden and others I need hidden.  They just remain as previously set before ADSYNC was installed.  How do I do this now -- post ADSYNC?
apsutechteamAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DeepinInfrastructure Engineer Commented:
Once you had the changed the attribute have your forced a sync with ADSYNC?
To force a delta sync:

Start Windows PowerShell on the server running the ADsync and type

Import-Module ADSync

 followed by

 Start-ADSyncSyncCycle -PolicyType Delta
0
Vasil Michev (MVP)Commented:
The msExchHideFromAddressLists is the way to go, however in order to use it you need to have the on-prem schema extended with the Exchange attributes. And, you must also populate some other attributes so that the object is recognized as valid Exchage recipient, otherwise AAD Connect will not sync it. In particular, the mailnickname attribute must be populated too.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
apsutechteamAuthor Commented:
Thanks for your help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.