<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
0D54z00006sQj9RCASOkta Classic EngineAdministrationAnswered2026-04-01T09:00:20.000Z2021-03-12T20:45:27.000Z2021-03-17T13:28:27.000Z

AlexM.67024 (Customer) asked a question.

Group Rule attribute for Domain

Hello. One of our instances is AD mastered, but also have Okta-native accounts. I'm trying to create a group rule that can add AD mastered users to a group, but so far no luck.

Is there an specific attribute or expression that can match that?

Thanks 


  • JohnPaulT.67567 (Customer)

    You can create a rule using Okta expression language, assuming your Okta native accounts don't have the domain name in the username.

     

    For example:

     

    String.substringAfter(user.login, "@") == "insertdomainname.com"

     

    Then assign to: group name

     

    Expand Post
  • k5fuw (k5fuw)

    Another option is the hasDirectoryUser() function, which returns true for any account that is AD-mastered and false for any account that is Okta-mastered.

     

    If user.hasDirectoryUser()

    Then Assign to <AD-mastered users group>

     

    If !user.hasDirectoryUser()

    The Assign to <Okta-mastered users group>

     

    Expand Post
This question is closed.
Loading
Group Rule attribute for Domain