Assigning Default permissions to user on login with Auth0 Actions

Hi,

Assuming there is no other way of assigning permissions to a user on login and/or creation apart from using an action, what action code would be needed to do similar as per roles: Assigning a Default Role to Users on Sign-Up with Auth0 Actions

Thanks