<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
Create Group for Users With a Specific Email Domain
Okta Classic Engine
Okta Identity Engine
Lifecycle Management
Directories
Overview

This article explains how to generate a list of all users with a specific email domain using a group rule in Okta.

 

NOTE: This method should only be used if Rockstar is unable to be installed in the environment or if a new group is desired. Otherwise, Rockstar can be used to generate a list without creating a group.

Applies To
  • User administration
  • Group administration
Solution

Follow the steps or video below:

  1. Go to Admin > Directory > Groups.
  2. Select Rules and click Add Rule.
  3. Enter a Rule name.
  4. Select Use Okta Expression Language.
  5. Enter the following expression:
  6. String.stringContains(user.login, "@specificDomain.com")
  7. Assign the rule to a group and click Save.
  8. Return to Rules and change the rule status to Active.
  9. If necessary, use an Application Programming Interface (API) call to List Group Members.

Related References

Loading
Create Group for Users With a Specific Email Domain