I've been trying to write a query to the api that will pull a list of all of the users in my AD imports that "need review" due to direct or indirect matches, but nothing seems to indicate that those types of discoveries are in the api. Has anyone done this before? Does anyone have any access to the source that pulls these types of data sets (so I can reverse engineer the query in my app)?
Unfortunately, I don't believe there's any API calls that accomplish this. You can see the available API calls in Okta's API Reference document linked below: https://developer.okta.com/docs/api/resources/apps.html
You may also want to consider putting in a feature request for this.
I'm a bit curious about this functionality myself, so I'm going to do some additional investigating and I'll circle back to your question here if I find anything new.