Ionic Auth API only returns 100 users



I have about 2500 users using my app. I want to be able to send a push notification to any user based on their ‘userName’ which is stored in the custom data object.

When calling the user API endpoint I can only ever seem to return 100 objects max. I’ve tried all sorts of different calls like the below but can only ever seem to return 100 users:

Firstly, is there a way I can return a specific user based on their custom data ‘userName’ or can I only fetch users by passing in their ionic user id?

If I can’t fetch users by custom data, then how can I return all 2500 users so I can loop through them and get the user I need? This isn’t ideal but might be the only option.

Thanks for your help!