Hi @auntypizza,
Please check this article https://aamplugin.com/help/how-to-lockdown-wordpress-backend
So basically you need to make sure that those 2 users do not have access_dashboard capability checked while everybody else should have it checked.
Regards,
Vasyl
Sorry – I wrote my question badly.
I meant to ask how to make it so that only 2 users have access!
The rest don’t.
I think the problem with that is we get new users on a regular basis and would have to go in and manually uncheck that capability? Or am I wrong – is it a once-off action?
Thanks so much for your help.
If you want only 2 users to have access to the back-end of your site just make sure you only have 2 user SET as Administrator and all other users (NEW or OLD) set to Subscriber. Also insure that new Registrations/Users are set to Subscriber ( WordPress Backend –> Settings –> General ).
And make sure you have Subscriber’s capabilities set by Default ( which means you have not added any capability.
Hope this helps.
@auntypizza,
To also follow-up with @noelalvarez answer. When you create a custom capability access_dashboard. It will be automatically assigned to Administrator role while unchecked for all other roles and users that do not belong to Administrator role.
So technically this means that all new users and existing users that are not administrators, will not have access to the Backend.
You can explicitly switch to any user on Users/Roles Manager panel and check access_dashboard capability for desired user that you want to give access to the backend.
Feel free to ask more questions.
Regards,
Vasyl
We have another role – Super User – and we don’t want to give access to our 6 administrators (long story).
I’ll try the above – thanks.