Validate a user's attribute in the resource owner password flow request

Hi,

I need to validate a user’s attribute in the resource owner password flow request. I wonder if it is possible? How can I do that? @andrea please would you help me?

image