
8vv6s (8vv6s) asked a question.
Hi all,
I'm quite new to Okta. We configured AD agent in our domain and settup Okta to use Delegated Authentication.
My problem is that I would like my AD account to be locked if the corresponding Okta account is and the same thing in the other way.
I found a question from 2020 here : https://support.okta.com/help/s/question/0D51Y00008vbtCeSAI/active-directory-locks-not-propigating-to-okta
And I can read "Unless the lockout attribute from AD is mapped to a similar Okta attribute that governs the status, a lockout in AD won't automatically propagate to a lockout in Okta."
But how exactly can I map the lockout attribute with Okta? If I create a custom attribute, how can I tell Okta to change its value when the account is locked? Also, I need the propagation to take affect as soon as one of the account is locked (on Okta first or on AD first).
Can you please enlighten me?
Thank you.

Hi @8vv6s (8vv6s) , Thank you for reaching out to the Okta Community!
The lockout is not considered a profile attribute in Okta, but rather a "state". As such they cannot be mapped to one another for the purposes of automated state reflection(at least not currently as far as I know).
That being said, Okta does have the capability of unlocking AD sourced accounts.
For this you will need to configure the dedicated Active Directory Policies in Okta to mirror those in AD. In particular the one pertaining to number of failed attempts before the account is locked.
The caveats here are that this applies to lockouts caused by the user trying to sign in to Okta and does not account for users locking their accounts due failing to login to the domain joined device AND
it applies to wrong password related lockouts - MFA lockouts are currently hard-coded at 5 failed attempts.
Reference articles:
https://support.okta.com/help/s/article/AD-mastered-user-gets-locked-out-after-writing-a-lower-lockout-threshold-in-GPO-password-policy-vs-an-AD-password-policy-in-Okta?language=en_US
https://support.okta.com/help/s/article/Why-do-active-Active-Directory-mastered-users-show-as-locked-out-in-Okta?language=en_US
https://help.okta.com/en-us/Content/Topics/Security/policies/about-password-policies.htm
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--------------------------------
Community members help others by clicking Like or Select as Best on responses. Try it today.