Good Morning,
Has anyone successfully set up an event that will send an email to the users when their password is about to expire?
Good Morning,
Has anyone successfully set up an event that will send an email to the users when their password is about to expire?
The notification comes only in the application, but you can create a small program outside of IFS to poll the table/view and send out emails.
Is there any way I could get your program so I do not have to recreate the wheel?
Thanks!
You could create a database scheduled task to look at the DBA_USERS Oracle view and check the expiry against SYSDATE, then use the Oracle DB to email the user.
Some code to get you started.
SELECT USR.USERNAME, USR.EXPIRY_DATE, COMM.VALUE AS EMAIL_ADDRESS
FROM DBA_USERS USR
INNER JOIN IFSAPP.COMM_METHOD COMM
ON COMM.IDENTITY = USR.USERNAME
AND COMM.METHOD_ID_DB = 'E_MAIL'
WHERE usr.ACCOUNT_STATUS = 'OPEN'
AND usr.EXPIRY_DATE IS NOT NULL;
Cheers
Rob.
Thank you!