Perhaps August Lock? I've never used it so I know very little, but at first glance it does seem to have an API of some sort.
However, it'd be an extra step and not integrated with some central employee list so the risk of forgetting to remove someone may be too high if using existing features, so that point may be moot.