This article explains how to assign all users from a specific email domain to a single group.
- Okta Group Rules
- Okta Expression Language (OEL)
Follow the steps or video below:
Create a group rule using the below regex. Replace example.com with the email domain of the users to be assigned.
substringAfter(user.email, '@') == "example.com"
The following image shows an example where a rule assigns all users with an email address ending in "@example.com" to the "example.com" group.
