Is there IDN Search criteria that can find recently terminated identities?
I’m currently using
{
"indices": ["identities"],
"query": {
"query": "(attributes.cloudLifecycleState:terminated) AND (modified:>$($lookback)) AND ((@accounts(source.name:\"AD\")) OR (@accounts(source.name:\"AD - Admins\")))"
},
"includeNested": true,
"sort": ["name"]
}
where lookback is set to 1 day
This is assuming that the termination event is the only thing modifying the identity.
I’ve recently had an account show up in a subsequent run of this search, because their already terminated identity was modified for some other reason a few weeks later.
Is there a better query for finding recently terminated accounts?
For Example, Is there a lastLifecycleStateChangeDate or something similar?