Perform Search API - How to filter and get a specific "accounts" from an Identity?

Check out this video where I demonstrate advanced reporting techniques using the SDK. I think it will help you develop a script to get the exact data you are looking for.