Administrators can enable “Send Mail Notification Before Password Expiration” from the
UI -> Administration -> Security -> General -> Password Expiration Policy.
But how can we configure how many days before the email should be sent? And what time of the day should the email be sent?
Users can set the below properties in
$JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties file and restart Artifactory:
artifactory.security.password.expiry.passwordExpireNotificationJobCron=0 0 10 * * ?
artifactory.security.password.expiry.daysToNotifyBefore=5
By default, the cron job to send the password expiration email is set to 0 0 10 * * ? (at 10AM everyday), and the email will be sent 5 days before the password expires.