The problem is that all user objects that are returned by REST API (like ones that come from /rest/api/2/user/search) have “accountType”=“atlassian” even for app/addon users (it should return “accountType”=“app”), so I can’t distinguish apps/addons from real human users. Is there any way to bypass that bug and distinguish them?
I think this currently in-progress request might be able to help you in what you need - kindly check if https://ecosystem.atlassian.net/browse/ACJIRA-1729 will be able to help you.
Looks like they already have implemented this but with bug described in my first post here. Will hope that they will fix that soon, here is bug ticket for that, please vote for it https://ecosystem.atlassian.net/browse/ACJIRA-1903