OIM - Scheduled Task for check Expired Entitlement

Hi all!

I would like to implement a process that monitors the expiration of entitlements provided to users (such as an account on a target system). Which checks for each user if there are permissions that expire in N days and sends him an email.

Is there any process that allows me to manage it or is it necessary to realize a script automatically launched?

Thanks.