Have you considered storing Organization information in app_metadata
of the user profile, which will allow you to do a much simpler search.
E.g. app_metadata structure of user:
app_metadata: {
"organization": "ABC"
}
Then a search can be performed with the query: app_metadata.organization: "ABC"
. This will return all users that have organization: "ABC"
in the app_metadata.