Make the email and groups as a mandatory Fields while creating new users

Do you have an Idea how to customize the validation of creating new users, I trying to make the email and groups as a mandatory field the same as username, and the validation should work everywhere I try to add a new user form example: using the keycloak UI, using “/users” API, or using the kcadm

User Profile SPI:
https://www.keycloak.org/docs/latest/server_admin/index.html#user-profile

It‘s not yet there everywhere and still a preview feature, but that‘s the way it will go in future.