Administration
You Asked: How do I created nested groups?
User16460653063307410261

This question comes from a customer in the Okta Community. “I have two groups and I want to add one group to another group. How can I do that?” 


While Okta does not support nested groups, it’s worth noting that an admin can import nested directories for group members so you can add a user to each group. This can be done by leveraging Group Rules


Using this, you can add users to desired groups based on their memberships in other groups.  


ready to sell.jpg



How to Create Group Rules

How are instructions on how to create group rules

  1. Go to your Admin Dashboard. 
  2. Navigate to Directory, then Groups and finally Rules
  3. Select Add Rule 
  4. It can be as simple as "IF user is part of group A THEN add to group B

or as complicated as 


"isMemberOfGroupNameContains("a")==true OR isMemberOfGroupNameContains("b")==true OR !(String.stringContains(String.substringBefore(user.email, "@"), ".")) OR ... " 


We won’t post the whole string here but you get the idea. 


Furthermore, the Okta Expression Language will help you with most of the more complex group membership requirements. Don't forget to check out the Best Practices for Group Rules



Watch and Learn: Using a Group Rule to Assign Users to Multiple Groups

Here’s a related video on how to assign users to multiple groups in Okta using a group rule. 

Watch now


Screenshot 2023-10-30 at 11.39.28 AM.png



More Like This


  • 2 Likes
  • 1 Comment
  • 2328 Views
Skip Feed
End of Feed
1 Chatter Feed Items