How to add roles, permissions to a user during signup?

I got this working as detailed here:

3 Likes