Michael, this is the code I use for the developers directory. It should help you get started.
https://gist.github.com/vfontjr/263cdf33d5ea5a84e0f0601406ff99b9#file-user_role_add-remove-php
It'd be great if the FF folks added the ability to assign multiple roles to users created with their Register User action. Could implement via the ability to add multiple Reg User actions and we could then do conditionals, or better yet, let us use a checkbox field or multi-select field to assign roles.
Please login or Register to submit your answer