How to fetch user role base on identifier with REST API?

Check this

GET /api/users?filters[username][$eq]=John