Is there an easy way to find a user by email address?

System Information
  • Strapi Version: v4.1.5
  • Operating System: macOS v12.2
  • Database: postgresQL
  • Node Version: v16.13.1
  • NPM Version:
  • Yarn Version:

I have a multi-step registration process and I would like to check if a email address has been used prior to posting a registration request. The documentation for content types says GET /api/restaurants?name=mcdonalds , but this pattern doesn’t seem to work for GET /api/users? Am I missing a something?

You can follow those steps:

First check for roles access in Users and Permission plugin

Then Goto Settings → USERS & PERMISSIONS PLUGIN → Roles,

You will get Roles page, if you haven’t created any roles you will see default two roles,as below

Click on public → goto Users-Permissions.

In Users-Permissions Goto USER section → Tick mark “find” checkbox and save it
and hit this Api-Endpoint with filtering.

GET /api/users?filters[$and][0][email][$eq]

Note: If you want query all your api end-points from authenticated Role you need provide jwt Token in your request.

Thank you, @Vipul_Shukla that did the trick.