
TomP.97467 (Customer) asked a question.
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

@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.