Legacy Dev Forum Posts

 View Only

Sign Up

How to setup a filter with wildcards to an API Query

  • 1.  How to setup a filter with wildcards to an API Query

    Posted 06-05-2025 18:21

    Rajkumar_Ratnarajah | 2022-01-26 14:16:14 UTC | #1

    Hi all,

    We are facing a problem with the following API.. Users > Get > Get the list of available users GET /api/v2/users

    This gives the results in pages, and when we arrived the limit of 10'000 pages, the query stops with an error.

    unfortunately it is not possible to add any filters to this query.

    Can we use instead of that the /api/v2/scim/v2/users ?

    if yes, can we add a filter with wildcard to this API? e.g. email eq *@mydomain.ch or email contains @mydomain.ch

    Many thanks in advance!

    Best regards, Raj


    tim.smith | 2022-01-26 16:31:37 UTC | #2

    Rajkumar_Ratnarajah, post:1, topic:13336
    GET /api/v2/users

    This gives the results in pages, and when we arrived the limit of 10'000 pages, the query stops with an error.

    This API has a hard limit of being able to return a maximum of 100,000 users. There is currently no way to page through additional users if you have more users in your org than that. You can request new features and share your use case for having 100,000+ users at https://genesyscloud.ideas.aha.io/.

    Rajkumar_Ratnarajah, post:1, topic:13336
    Can we use instead of that the /api/v2/scim/v2/users ?

    SCIM is a specification with a specific purpose, which is to synchronize users between systems; it is not an alternative to GET /api/v2/users.


    Rajkumar_Ratnarajah | 2022-01-27 12:37:53 UTC | #3

    Hi Tim,

    Thank you for the Information. I will open an idea / enhancement request for this limitation problem.

    Whether this idea will be accepted or when we can have it, is no one knows :frowning:

    Is there a possibility to use a filter with wildcard to narrow the result?

    Thanks! Raj


    tim.smith | 2022-01-27 15:22:56 UTC | #4

    Rajkumar_Ratnarajah, post:3, topic:13336
    Is there a possibility to use a filter with wildcard to narrow the result?

    The only available options are the ones documented, which does not include the ability to filter: GET /api/v2/users.

    There are search endpoints: POST /api/v2/users/search. It's not directly equivalent to the user endpoint, but you can get back the IDs and look up the users individually.


    system | 2022-02-27 15:23:27 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 13336