Manual:PurgeExpiredUserrights.php

Details
purgeExpiredUserrights.php is a maintenance script 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.