<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
0D5KZ00000tOKMd0AOOkta Identity EngineWorkflowsAnswered2025-05-30T18:01:36.000Z2025-05-28T21:02:52.000Z2025-05-30T18:01:36.000Z

TomP.97467 (Customer) asked a question.

Password expiration reminder for Okta users only, not AD users

We have users in both AD and Okta only. I want to setup a workflow to send a expiration reminder only to the Okta users. Can I do this or will the AD users be sent a reminder also? I am not syncing pwdLastSet from AD.

 

LMK

Thanks,

Tom


  • TimL.58332 (Workflows)

    @TomP.97467 (Customer)​  -- Just for clarity. The Solution Diana has presented is a built-in functionality of Automations. If you are looking for a more custom / granular process you can build it yourself leveraging the Okta Workflows product. These are two different products that are accessed in the Okta Admin UI via:

     

    Automations: Workflow > Automations

    Workflows: Workflow > Workflows console.

     

    The difficulty in building out your own is the top-level passwordChanged attribute on each user's profile is not indexed for search by the Users API. Only a specific subset of top-level attributes and all custom attributes are indexed:

     

    The top-level properties: id, status, created, activated, statusChanged, and lastUpdated

     

    https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/#tag/User/operation/listUsers

     

    So to design a Workflow you would need to process "each" user every time which is cumbersome if you have a large seat count. Alternatively, you can make it a "forward looking" scenario and leverage an Event Hook to update a custom attribute each time a user changes their password. Since it is a custom attribute you could then have another flow that performs specific searches for the date(s) you are looking for. I recommend any stored dates be in ISO 8601 format to ensure consistency/searchability.

     

     

     

    Expand Post
    Selected as Best
  • DianaL.19788 (Customer Support Online Community and Social Care)

    Hello @TomP.97467 (Customer)​ , thank you for contacting Okta Community.

     

    Yes, this is achievable with the Workflows Console. It was addressed in this previous question very well:

    Password expiry email notification to user

    It will only work for Okta-managed users, so the AD-managed users should be left out by default.

     

    Regards. 

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Collect them all. Learn a new skill and earn a new Okta Learning badge.

    Expand Post
  • TomP.97467 (Customer)

    Diana,

    Thanks for the quick response. One follow up:

     

    Are there template emails to use to send to users about password expiration? The default template seems to give no info.

     

    Just looking for: Hey, your password will expire in X days. Please go to okta to change it.

    Thanks,

    Tom

    Expand Post
  • TimL.58332 (Workflows)

    @TomP.97467 (Customer)​  -- Just for clarity. The Solution Diana has presented is a built-in functionality of Automations. If you are looking for a more custom / granular process you can build it yourself leveraging the Okta Workflows product. These are two different products that are accessed in the Okta Admin UI via:

     

    Automations: Workflow > Automations

    Workflows: Workflow > Workflows console.

     

    The difficulty in building out your own is the top-level passwordChanged attribute on each user's profile is not indexed for search by the Users API. Only a specific subset of top-level attributes and all custom attributes are indexed:

     

    The top-level properties: id, status, created, activated, statusChanged, and lastUpdated

     

    https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/#tag/User/operation/listUsers

     

    So to design a Workflow you would need to process "each" user every time which is cumbersome if you have a large seat count. Alternatively, you can make it a "forward looking" scenario and leverage an Event Hook to update a custom attribute each time a user changes their password. Since it is a custom attribute you could then have another flow that performs specific searches for the date(s) you are looking for. I recommend any stored dates be in ISO 8601 format to ensure consistency/searchability.

     

     

     

    Expand Post
    Selected as Best
This question is closed.
Loading
Password expiration reminder for Okta users only, not AD users