
DarrellB.34056 (Customer) asked a question.
I have a PS Script that automates the termination process. The issue is when the script disables the account in AD and sets msExchHideFromAddressLists="TRUE,” the account won’t sync to 0365 because the account must be enabled in Okta for the Sync to 0365
The only way I have found around this is to first hide from the GAL “ Global address List ” Pause my Script for 60 minutes, wait for the sync, and then disable the account.
The issue here is I can’t wait an hour for the Sync. They need to be disabled ASAP. We have over 40,000 user accounts and our GAL is starting to reflect this issue…
I have seen a lot of posts about this same issue, many over 3 years old saying it cant be done. I can’t believe you guys haven't found a solution to this problem yet - It’s affecting a lot of your customers. If I’m missing something, please let me know. I need to get this resolved.

@DarrellB.34056 (Customer), thank you for the detailed description of the issue and for using our community to remedy. I want to confirm that one of our product experts will reply soon.
Hi @DarrellB.34056 (Customer),
Thank you for posting on our community page!
The described behavior is expected because when a user is deactivated their provisioning flow is disrupted and the applications are removed as explained in the documentation provided bellow: