As @santhirajumunganda said you can add the "pwdLastset" attribute to your AD Application Schema.
You can schedule a Run Rule task where you can calculate the password expiry date and compare it with today’s date, if the password expiry date is 10 days before to today’s date. Then you can send the email Notification.
Extend the schema to add pwdLastSet. Use customization rule to calculate the day difference and set an attribute like sendPasswordExpireEmail.
Introducing identity attribute or not is optional.
Introduce a lifecycle event of type Rule, where you can check users with AD account and sendPasswordExpireEmail = true
then launch the workflow to send the email.
(If your userbase is less, you can also send the email from your customization rule itself).
Note: Found a fix?Help the community by marking the comment as solution. Feel free to react(,, etc.)with an emoji to show your appreciation or message me directly if your problem requires a deeper dive.
You’re on the right track with pwdLastSet — that’s typically what’s used to calculate password expiry in AD.
Even though it’s not part of the OOTB schema, you can extend the AD application schema in IIQ to bring in pwdLastSet. Once you have that, you can convert the value (since it’s in Windows FileTime format) to a readable date and calculate when the password will expire.
From there, you could use a scheduled task or rule to identify users whose password is expiring in the next 10 days and trigger email notifications.
Alternatively, if your environment supports it, you could also look at using attributes like msDS-UserPasswordExpiryTimeComputed, which directly gives the expiry time and can simplify the logic.