This guide will teach how to identify users whose status has changed in a certain number of days since today.
- Workflows
For example, it is necessary to locate users de-provisioned 30 days ago. The following flow finds such users:
The flow has the following cards:
- The Date & Time – Now card returns today’s date.
- The Date & Time – Subtract card subtracts the number of days from today’s date. For example, it is necessary to locate users de-provisioned 30 days ago.
- The Text – Compose card creates the search query:
- The status is set to DEVPROVISIONED. Another status can be used.
- The statusChanged is the last time the status changed.
- The statusChanged date is checked if it happened 30 days ago. Another number of days can be used.
- The Okta – List User with Search card uses the query to find the users who were de-provisioned 30 days ago.
Related References
