Hi, I’m trying to create a customized sign-up form for my application. There are a couple of different things I want to do:
- The users can registered under a few pre-defined locations (places of work in the case of this application). These are set by the administrator. Upon user registration, I would like the user to be able to choose his place of work from a dropdown menu. The locationId will be saved in the users profile (should I be doing something different?). So basically I want to have a dropdown listing the locations (defined by the admin) that the user chooses and then the locationId is saved to the user.
- There are various levels of permission the application. Most users will be regular users but there are also administrators and managers. When the user registers, I want to predefine that they are a regular user. Then I want to base what they see based on their permission level. How should I lookup the logged in user’s permission level in the application? How do I predefine the user to a certain permission level upon creation.
- This leads me to my second question. How should I create the managers and administrators necessary? I don’t want this access granted once I create them.
Thank you for any help ahead of time. I really appreciate it.