As AEM doesn't have OOTB feature so I have explored user account lock with maximum number of failed attempts, you can see the details here -
https://medium.com/@debal.india2014/aem-author-account-lockout-feature-4741073bae6a
But in your case, you need to lock the account once that person leaves ...