Creating 100s of uses automatically with preassigned passw?
Posted: 2013-06-02 20:14
Hi,
I have an app where I have records for 3rd parties who will participate in a particular event. The event organizer is super frustrated with the act of communicating with these 100s of 3rd parties, getting the details that need to be displayed in the app and then entering them in etc. I tried to help by offering imports into db through excel but we are swimming in a sea of excel edits, versions, messed up templates etc.
The solution is obvious. Create a user id for each 3rd party and give them access to just the record that covers their details so they can edit it and make it look like they want it. I think I have the knowledge (thanks to this forum) of how to limit a user to one record only so I am sure this setup can be made to work. The challenge is creating those 100s of user ids & passwords...
Any thoughts on how I can programmatically accomplish this? I would need to do something like this :
For each record in exhibitors table
1 - create a user id & random password
2 - make the user id member of a particular group
3 - write the userid into the allowedUser field in the exhibitors record. This field is what I will check and compare when user is back to edit the record.
4 - email the user id & random password & a direct link to edit the record that belongs to this user id to the email address that is in the exhibitors table record.
5 - if there is no email address on record for this user id then send the email above to the administrator for forwarding.
I think I know how to do 3, 4 & 5.
1 & 2 is the big question for me. Any thoughts? Thank you very much for your ideas.
Regards,
Kerem
I have an app where I have records for 3rd parties who will participate in a particular event. The event organizer is super frustrated with the act of communicating with these 100s of 3rd parties, getting the details that need to be displayed in the app and then entering them in etc. I tried to help by offering imports into db through excel but we are swimming in a sea of excel edits, versions, messed up templates etc.
The solution is obvious. Create a user id for each 3rd party and give them access to just the record that covers their details so they can edit it and make it look like they want it. I think I have the knowledge (thanks to this forum) of how to limit a user to one record only so I am sure this setup can be made to work. The challenge is creating those 100s of user ids & passwords...
Any thoughts on how I can programmatically accomplish this? I would need to do something like this :
For each record in exhibitors table
1 - create a user id & random password
2 - make the user id member of a particular group
3 - write the userid into the allowedUser field in the exhibitors record. This field is what I will check and compare when user is back to edit the record.
4 - email the user id & random password & a direct link to edit the record that belongs to this user id to the email address that is in the exhibitors table record.
5 - if there is no email address on record for this user id then send the email above to the administrator for forwarding.
I think I know how to do 3, 4 & 5.
1 & 2 is the big question for me. Any thoughts? Thank you very much for your ideas.
Regards,
Kerem