'How to get the users who are not associated with any Identity Providers in Keycloak

I'm able to get the users who are associated with Identity provider in keycloak, using endpoint <keycloak_base_url>/auth/admin/realms/<realm_name>/users?idpAlias=<identity_provider_alias>.

But here what I need is the opposite. I need all the users who is not associated with any of the identity provider.

enter image description here

Is their any way to get those users ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source