How to create a conditional validation condition based on user properties


i have 2 users with different functions. user A has function x and user B
has function y. The function is captured in a user property and pulled into
the form. i want to make it in such a way that user A can enter negative
values and user B can only enter values starting from 0.