This article details how to assign users to multiple groups via group rule(s).
- Group Rules
- Okta Expression Language (OEL)
Admins can assign users to multiple groups with group rules.
A simple way to perform this is by:
- Access the Okta Admin App.
- Click Directory > Groups.
- Click Rules.
- Click Add Rule.
- Fill out the required sections of the rule:
- Name.
- IF (this will create the condition by leveraging a basic or Okta Expression Language (OEL) condition).
- THEN Assign to (add the groups to which Admins should have their users added. Multiple groups can be selected).
- Admins can fill out the optional section of the rule under - EXCEPT The following users.
- Click Save.
- When ready to enable the Group Rule, select Actions > Activate. Please keep in mind the best practices prior to enabling the Group Rule:
- Preview or test rules on a user before saving and executing.
- Review existing rules and check for duplicate conditions.
- Make sure to eliminate all cascading rules.
- Make sure the user was added by the rule created (see below screen shot)
