Question
Question
Workflow: Dynamic E-mail Recipient and Access Right Generation
Answer
Your idea for the drop-down list of users is pretty clever and should work well. The only issue is that you’ll need to manually add or remove users from the list every time someone joins or leaves the organization. It might be cool if you could find a way to programmatically dump the list of users to a SQL table in the appropriate format (“John Smith (jsmith3)”) on a daily basis. Then you could make your dropdown list a dynamic field, so that it’s automatically kept up to date. Or maybe you could use Workflow to keep your list current? Worst case scenario though, you have to curate the list manually, and you just make sure someone stays on top of it.
As for setting security, that’s definitely possible. You can use the ‘Assign Rights’ activity in Workflow to set the appropriate rights on a folder, and ‘Find Entry’ to locate all the folders that need to have access rights configured. So you can use ‘Route Entry to Folder’ to create a new folder for a user, and then ‘Assign Rights’ to set security on it. Then you can use ‘Find Entry’ to find the parent folder and set rights on that. Then another ‘Find Entry’ to find the parent folder of your parent folder, and set the rights there. Repeat as necessary.
I hope that answers your questions! If you need more specific help with things, just let us know where you’re struggling and we’ll be happy to help.