<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
0D50Z00008KfOSaSANOkta Classic EngineAdministrationAnswered2024-04-16T11:45:42.000Z2018-09-05T14:30:42.000Z2018-09-13T20:04:35.000Z

wedjz (wedjz) asked a question.

How to create a new employee smart group with group rules?

Looking to create a smart group that only includes new employees after a specific start date, our current attribute for start date is pushed from Workday and is formatted yyyy-mm-dd and I'm struggling to figure out how to write an appropriate expression to manage this. Ideas?


  • JerrellG.67360 (Customer)

    Hello Matt,

     

    Okta has conditional Expressions, if the attribute for the start date is a valid value you can use the expression language listed below.

     

    You can specify IF…THEN…ELSE statements with the Okta EL. The primary use of these expressions is profile mappings and group rules. Group rules do not usually specific an ELSE component.

    The format for conditional expressions is

    [Condition] ? [Value if TRUE] : [Value if FALSE]

     

    There are several rules for specifying the condition.

    • Expressions must have valid syntax.
    • Expressions must evaluate to Boolean.
    • Expressions cannot contain an assignment operator, such as =.
    • User attributes used in expressions can contain only available User or AppUser attributes.

     

    The following functions are supported in conditions.

    • Any Okta Expression Language function
    • The AND operator
    • The OR operator
    • The ! operator to designate NOT
    • Standard arithmetic operators including <, >, <=, and >=.

    Note: Use the double equals sign, ==, to check for equality.

     

    If you need additional assistance please open a Support Case with Okta at 1-800-219-0964.

    Expand Post
  • mike.davie1.5312945692819849E12 (Customer First Programs)

    Hello Matt,

     

    Thanks for posting your inquiry in Okta Community Portal.

     

    If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer." 

     

    Thank you,

    Mike Davie

    Okta Help Center

    Expand Post
This question is closed.
Loading
How to create a new employee smart group with group rules?