I am relatively new to power portals and here I want to make a registration form in the portal. The registration form is simple with very minimal fields such as First Name, Last Name, Email, and User type.
However, challenge is based on the selected user type I want to set the roles of the user and display him forms accordingly in the portal. Such as if the user is an Teacher, He/She will be able to see assigned courses page. Similarly, if user is Student then they will be able to see time table form where as if user is registered as an admin they will be able to see all pages.
How can I assign roles to a user while he registers by selecting the user type? and control the security restrictions.