<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Assign All Users from One Domain to a Single Group
Lifecycle Management
Okta Classic Engine
Okta Identity Engine
Overview

This article explains how to assign all users from a specific email domain to a single group.

Applies To
  • Okta Group Rules
  • Okta Expression Language (OEL)
Solution

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.

 Edit rule 

Loading
Assign All Users from One Domain to a Single Group