This isn't a feature built inside MyBB (from what I'm aware off) and requires you to modify the .php files inside your root (mostly they are located here but it may be somewhere different). You can access it from your host's inbuilt system although I recommend you use Filezilla as it's easier to transfer files. So here is what you do:
Always make sure you have a copy of the original file before editing in case it doesn't work.
1) Once you have found the .php file you are wanting to edit, open it up to edit with notepad++ or something of your choice.
2) Add this code somewhere:
Make sure you know exactly where to add it otherwise it may cause some errors on your site when you do run the modified version.
3) Save and replace the old .php file with this one. You can try with different accounts to see if it works.
Always make sure you have a copy of the original file before editing in case it doesn't work.
1) Once you have found the .php file you are wanting to edit, open it up to edit with notepad++ or something of your choice.
2) Add this code somewhere:
PHP:
$allowed = array('X1'); //
if(!in_array($mybb->user['usergroup'], $allowed))
{
error('X2', 'Main Board');
}
3) Save and replace the old .php file with this one. You can try with different accounts to see if it works.