Limitations and Potential Workaround for Group-Based IdP Routing Rules in Okta
Last Updated:
Overview
Okta Identity Provider (IdP) Routing Rules do not support direct group membership matching because group memberships are not recognized during the authentication flow. Configuring a user attribute-based workaround resolves the issue.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- IdP Routing Rules
- Group membership matching
Cause
IdP Routing Rules trigger during the authentication flow, at which point Okta does not recognize the authenticating user's group memberships. Because group memberships are unavailable at that stage, direct group-based routing rules cannot be applied.
Solution
How is a group-based IdP routing rule workaround configured?
When direct group membership matching is unavailable in IdP Routing Rules, configure a user attribute condition as a substitute using these steps:
- Configure a group rule to assign users with a specific attribute value to a group.
- Edit the routing rule to match the user attribute and its value.
For example, users with the "Title" attribute set to "Manager" get assigned to the "Managers" group. Adjust the routing rule so that it matches the "User attribute, Title Equals Manager" condition. Although there is no direct connection between the "Managers" group and the routing rule, all users with the "Manager" title who also belong to the "Managers" group will be routed accordingly.
