Manual:PurgeExpiredUserrights.php

Details
purgeExpiredUserrights.php is a to remove user right assignments which have expired (ug_expiry is before current time) from the user_groups table and add them to the user_former_groups table.