Required field validation for custom created fields in user collection are not working

System Information
  • Strapi Version: latest
  • Operating System: windows
  • Database: mysql
  • Node Version: 12.18.4
  • NPM Version: 6.14.6
  • Yarn Version: NA

I have created couple of fields like first_name , last_name for the default user collection and marked both the fields as required.

When I try to create a user record via API. records are created without first_name and last_name value.
I tried using both “/api/users” and “/api/auth/local/register” in both the endpoints the required field validation for custom fields are not shown.

1 Like