Set users status as disabled in Azure AD for account which got expired in on-prem AD when using Password Hash Sync method

Rahul 236 Reputation points
2020-11-04T20:47:37.053+00:00

Hi Team,

We are using Password Hash Sync authentication model in AD connect. Since we are using Password Hash Sync we know there's a drawback of it i.e. Account Expired / Password Expired scenarios are not available out of the box.

Let me know if there's a solution within Password Hash Sync method only to set the user status as Disabled if user account expired in on-prem AD. ( Please don't suggest on switching to ADFS or PassThrough Authentication I'm aware of there capabilities)

Any best practices and solution for PassHash Sync method to disable account which got expired in on-premises ?

I have read about EnforceCloudPasswordPolicyForPasswordSyncedUsers feature which is for Password Expiration scenario not for Account Expiration. Reference1 Reference2

Any suggestion on simplest way to achieve the above via AAD Connect Rule ?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,581 questions
{count} votes

2 answers

Sort by: Most helpful
  1. VipulSparsh-MSFT 16,231 Reputation points Microsoft Employee
    2020-11-05T09:19:49.153+00:00

    @Rahul We already have a uservoice for this particular scenario. You can use it to upvote and share your feedback as well. As a work around you can create a custom PowerShell script which will specifically look for disabled user accounts in local AD and then use that information to change the status on AAD.

    You can use the information on this article to create a similar use case for disabled account. The article talks about expired password but we can use the idea for disabled accounts as well. If that does not help, any custom PowerShell script would do the job for you as unfortunately there is no direct built in way of doing it right now.

    -----------------------------------------------------------------------------------------------------------------

    If the suggested response helped you resolve your issue, please do not forget to accept the response as Answer and "Up-Vote" for the answer that helped you for benefit of the community.

    0 comments No comments

  2. Serugo Kenneth 1 Reputation point
    2021-03-19T15:48:29.553+00:00

    We currently implemented this in our environment.

    We used Azure Connect Rules Editor using following the steps below

    https://myserverissick.com/2019/01/how-to-make-azure-ad-connect-disable-expired-accounts/