Forum Discussion
AdamN
13 years agoKhoros 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!
Related Content
- 2 years ago
- 3 years ago