<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
How to Create Group Rule with More than One Condition Using Okta Expression Language
Administration
Okta Classic Engine
Okta Identity Engine
Overview

The goal of this article is to clarify how to create a group rule with more than one condition using the Okta Expression Language.

Applies To
  • Group Rules
  • Okta Expression Language
Solution
  1. Navigate to Directory Groups Rules.
  2. Click Add rule.
  3. Enter a name for the rule.
  4. Select Use Okta Expression Language (advanced).
  5. In the box, enter something such as: user.title=="Sales" && user.costCenter == "2024"
  6. For Assign to, enter a group name.
  7. Save rule.

Save Rule

  1. Next to the newly created rule, click Actions Activate.
  2. Using the configuration above, all users with the title "Sales" and cost center "2024" will be automatically assigned to the Sales group.
  3. The expression language can be customized for any profile attribute.


Related References

Loading
How to Create Group Rule with More than One Condition Using Okta Expression Language