Dynamic choices constraints based on conditions

Is there a way to constraint the dynamic choices in a dropdown based on a condition?

For example: if current user’s Name is “jhon” show only those choices, otherwise show all