how to make userlevel copy also copy associated userlevel permissions?

My project contains over 100 tables. Assigning permissions for these tables can be very time consuming.
It would be great if copying a userlevel would copy the associatd permissions too.
As far as i can see PHPMaker doesn’t do this out of the box.
Can i add this functionality to the copy action somehow?
v2021.0.15

You may use Row_Inserted server event (fired after Add/Copy) to execute an INSERT… SELECT… statement (assume MySQL).

You may try Copy a set of userlevelpermissions to another userlevelid