Different profiles/configurations depending on user type?

New Contributor III

Sorry for asking this but I'm still kind of new with MDM. I'm trying to solv a problem with a user and its profiles. Under one of our sites School there can be two kinds of users - students and teachers that get different kinds of profiles/configurations on their devices.
In this case we have two teachers that get wrong profiles/configurations. They get for students.

I don't know how or where I set upp the selections/settings or rules for this? I would be very happy if someone could point me in the right direction. Thanks!