Forum Discussion
- AdamNKhoros Oracle
Hi Paul,
Technically it would be possible via customization; however, if you're registering and signing in the user via SSO I would strongly suggest passing the role via the SSO token instead. That would be the cleanest (and likely the easiest) approach, in my opinion.
If you do want to go the customization route, you can take advantage of the activity context object:
When a user registers (UserRegistered event), you could check the e-mail address in their profile and compare it to your target domain(s). If it matches, grant the role. I would strongly suggest that you ensure the e-mail address is verified prior to granting any roles based on the e-mail address.
I hope this helps!
Hi Paul,
this is a feature being requested every few weeks. You might want to add your support for this idea to have it prioritized for Lithium platform's future development: http://lithosphere.lithium.com/t5/Ideas/Ranking-based-on-verified-email-domain/idc-p/55480
Related Content
- 11 months ago
- 5 years ago
- 7 years ago
- 4 years ago