Default role on signUpEmail - Admin Plugin

Hey all,

adding the Admin plugin to my site, and some extra roles. Following the website for help with this. I've added manager, project manager, guest and none to the admin and user role list. I'm running into an issue where on registration using the signUpEmail method, the new registration role defaults to user. I can understand why people might want this, but, I'm interested in having someone verify and approve the new user prior to giving them a user role, as, that role is important in my organization. I also prefer to use the signUpEmail as it triggers a new welcome email that I'd like to send to new people Any way to augment this to set the role to 'none' when signing up?

I've tried passing it in the form and in the server API to create the user, I get an error that I can't set role using this function.

Thanks in advance.
Was this page helpful?