How can I dynamically assign groups based on Department without individual Group Rules? Skip to main content
https://support.okta.com/help/answers?id=9060z00000078ihqay&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Sandbox AdminSandbox Admin 

How can I dynamically assign groups based on Department without individual Group Rules?

Our org structure is such that we have 60-70 different numerical values for Department (101, 102, 103, etc.) and I am looking for a way to automatically assign a group in Okta to a user based on their Department attribute.  Obviously, I'd rather not do this manually by creating 60-70 different group rules, one for each group.  Is there a way to write a rule that says:

X = user.department
If Department = X then assign group "Department - " + X

For example, it would see a user with Department = 203 and assign a group called "Department - 203"
Cristian MondiruCristian Mondiru (Okta, Inc.)
Hello,


  Thank you for reaching out to Okta Support!
  Currently, the Group rules can handle assigning users from multiple groups to one group, assigning users from one group to multiple groups or the previous two combined. However, the rule cannot process the conditions defined in the string and assign the users accordingly to the one of the groups that have been specified in the "Assign to" section.
  Although the feature is not available, we would recommend submitting the request as an Idea, in the Help and Support section, providing as much details as possible, as the idea can be commented and upvoted by other members of the community. This makes it much easier for the engineering team to understand the priorities that you have for feature requests. From there, the PM team will review the top 30 most voted upon ideas each month and provide feedback/roadmap status on these via the forum. 
  If you require any additional details, please do not hesitate to open a support ticket and we will further assist.

  Have a great week ahead!


Thank you,

Cristian Mondiru
Technical Support Engineer