changed FOS\UserBundle\Security\EmailUserProvider findUser function scope. curl -H "`lwsse`" -L -w "%{http_code}" http://localhost/app_dev.php/api/auth/users/admin.json?id=xxx