Is it possible to check if the user is in account locked state and within the account lockout duration? The requirement is to provide an error to the user that account is locked and he/she needs to wait until lockout duration is completed on custom sign in journey. During the lockout period even if the user enters a correct password we should not let them in. I checked user attributes but could not find a corresponding attribute to work with. Is accountEnabled the right one to check? Is it possible to use
AAD-UserReadUsingEmailAddress-emailAddress
as a first step before login-noninteractive kicks in and read
accountEnabled
attribute and provide a custom message and stop the flow if it is set to false? If this attribute is not designed for locked state which attribute/way to use for this purpose?