Searching organization members

We’ve been using search for members rest endpoint for some time. We use it with organizationId specified and onlyOrgMembers=false. Such configuration provides us with too much members so we tried using onlyOrgMembers=true.

When onlyOrgMembers=true the API does not return board members that are no organization members.

How should we query endpoint to obtain organization members as well as members invited to boards?

I don’t know that the search endpoint is going to get you what you need.

Are you able to get members invited directly from the board resource? https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-members-get

Generally, I’d recommend directly accessing resources instead of using search if you already know their IDs. It sounds like you could GET an organization’s boards, and then query each individually. It should be a fair bit more performant that the search endpoint, as well.