Your cart is currently empty!
Assign group based on email
—
by
Hi folks, I’m trying to get groups to assign a group based on an email address. Is this possible? My website has different products for different clients and it would be great if people registering an account from business ‘x’ or business ‘y’ would automatically be assigned to a group.
Posted in Groups
Comments
3 responses to “Assign group based on email”
At least for the time being you can only implement that feature. If it existed, you would already be able to use it.
Kind regards,
George
Hi,
I would say that it can be done. How I would build it would be something like the following:
1. Get the email of the new user
2. Check if a group for that domain exists, if not create that group.
3. Check if the user belongs to that group already, if not assign him/her to that group.
FYI, these resources will be useful for the implementation.
Groups API
Examples
Check if a group exists
Check if a user belongs to a group
Kind regards,
George
Hi George,
Thanks for the reply. So I guess that means no easy way for a non-programmer?