You can to limit the number of people that have access to all pages of your WordPress intranet / internet website by simply toggling the WordPress + Azure AD / Microsoft Office plugin’s so-called Authentication mode.
The intranet authentication mode restricts access to WordPress Admin and all published pages (and posts) to logged-in users. This scenario is especially useful for WordPress based intranets when the content is considered confidential.
On the contrary, the internet authentication mode only restricts access to WordPress Admin to logged-in users. This scenario is especially useful for WordPress based internet websites when the content is not considered confidential.
Private pages is an additional capability of (premium editions of) the WordPress + Azure AD / Microsoft Office 365 plugin.
For further technical details please refer to the Configuration documentation
View a chart that compares all features available with all editions.