Now enable or disable the checkbox for the particular role-based user.
Example : In the below image, I have disabled 2-factor for Editor role based users.
Click on Save Settings.
After this, whenever a user with Editor role logs in to the WordPress site, he will not be asked for 2-factor. Users of other roles will be prompted for 2-factor authentication.