Home / SEO / How to Fix the “Sorry, You Are Not Allowed to Access This Page” Error in WordPress

How to Fix the “Sorry, You Are Not Allowed to Access This Page” Error in WordPress

Looking to streamline your WordPress login process? Look no further than this guide on setting up SAML Single Sign-On (SSO) in WordPress.

By implementing SAML SSO, you can provide users with a seamless login experience across multiple applications using just one set of credentials.

In this tutorial, we’ll walk you through the step-by-step process of configuring SAML SSO using a popular WordPress plugin. We’ll cover everything from understanding the concept of SSO to troubleshooting and best practices.

Whether you’re new to WordPress or a seasoned pro, this article has got you covered. So, let’s dive in and enhance your website’s user experience.

Install and Activate a SAML SSO Plugin

To begin installing and activating a SAML SSO plugin, you need to first navigate to the WordPress dashboard. Once you’re there, click on ‘Plugins’ in the sidebar menu and then select ‘Add New.’

In the search bar, type in ‘SAML Single Sign-On’ and press enter. Look for a plugin that suits your needs and click on the ‘Install Now’ button next to it.

After the installation is complete, click on the ‘Activate’ button to activate the plugin.

Now, you’ll need to configure the plugin by providing the necessary information such as your SAML settings and identity provider details.

Once everything is set up correctly, the SAML Single Sign-On plugin will enable seamless and secure authentication for your WordPress site.

Obtain the Identity Provider (Idp) Metadata

To obtain the Identity Provider (IdP) Metadata in WordPress for setting up SAML Single Sign-On (SSO), you have two options.

Firstly, you can request it from the IdP administrator directly. Alternatively, you can retrieve it using a publicly available URL provided by the IdP.

The IdP Metadata is crucial as it contains important information such as the IdP’s public certificate, Single Sign-On (SSO) service URL, and entity ID. This metadata allows the service provider (SP) to establish a trust relationship with the IdP.

Additionally, the IdP Metadata includes details about the IdP’s capabilities, supported bindings, and encryption methods, which are essential for configuring SAML SSO in WordPress.

Once obtained, the IdP Metadata needs to be uploaded or imported into the SAML SSO plugin or module being used in WordPress for the SSO configuration.

Configure the Plugin With Idp Metadata and Login/Logout URLs

To configure the plugin with IdP metadata and login/logout URLs in WordPress for SAML Single Sign-On (SSO), you need to input the relevant information into the plugin settings. Follow these steps to ensure a seamless authentication process:

  • Obtain the IdP metadata from your identity provider (IdP) and either enter the metadata URL or upload the metadata XML file to the plugin settings. This establishes the connection between WordPress and the IdP.
  • Input the IdP login URL, which is the URL where users will be redirected to for authentication.
  • Input the IdP logout URL, which is the URL where users will be redirected to after logging out of WordPress.

Make sure to verify that the entered IdP metadata, login URL, and logout URL are accurate and correctly configured to avoid any authentication issues.

After completing the configuration, test the SAML SSO setup to confirm that users can authenticate and logout successfully.

Map User Attributes From Idp to WordPress User Profile Fields

To ensure a seamless integration between your identity provider (IdP) and WordPress, it’s crucial to properly map user attributes from the IdP to corresponding fields in the WordPress user profile. This mapping allows for accurate transfer of user information during the SAML single sign-on (SSO) process. In WordPress, user attributes such as email, username, and role need to match the attributes from the IdP in order to maintain consistent user data across both systems.

To configure the mapping of user attributes from the IdP to WordPress user profile fields, you’ll need to use the SAML SSO configuration provided by your SAML plugin. This configuration typically involves selecting the appropriate user profile fields in WordPress and mapping them to the corresponding attributes from the IdP. Ensure that the mapping is accurate and complete to avoid any discrepancies or data loss.

Test the SSO Configuration

To ensure a seamless integration between your identity provider (IdP) and WordPress, you should test the SSO configuration by logging in and accessing various parts of the WordPress site to ensure seamless access and functionality.

Here are the steps to test the SSO configuration:

  • Use a SAML tracer tool to analyze SAML assertions and responses, verifying that the SSO authentication process is working correctly. This tool will help you identify any issues with the SAML communication between your IdP and WordPress.
  • Conduct a thorough review of the error logs to identify any SAML-related errors or warnings that may indicate misconfigurations in the SSO setup. This will help you troubleshoot and resolve any issues that may arise during the SSO process.
  • Perform end-to-end testing by logging in with different user roles to confirm that the SSO integration accurately assigns the appropriate permissions. This will ensure that users are granted the correct access levels based on their roles.

Enable SSO in WordPress as the Identity Provider

To enable SSO in WordPress as the Identity Provider, you’ll need to:

  1. Install and activate a SAML SSO plugin on your WordPress site.
  2. Configure the SAML settings, including the identity provider metadata URL or XML, the entity ID, and the SAML login URL.
  3. Provide the certificate and private key for encryption and signing.
  4. Enable SSO in WordPress by selecting the appropriate options in the plugin settings.

Set up WordPress as the Service Provider

To set up WordPress as the Service Provider for SAML SSO, you’ll need to configure the necessary settings and activate the SSO plugin. Here’s how you can do it:

  • Install and activate a SAML SSO plugin from the WordPress plugin repository.
  • Access the plugin settings and enter the required information, such as the Identity Provider’s metadata URL and the Service Provider’s Entity ID.
  • Generate and download the Service Provider’s private key and certificate.
  • Upload the certificate to the plugin settings and save the configuration.

Once you have completed these steps, your WordPress site will be configured as the Service Provider for SAML SSO. This means that users will be able to authenticate through the Identity Provider and access your WordPress site seamlessly.

Make sure to test the SSO functionality to ensure everything is working correctly.

Integrate SSO Capabilities With Third-Party Plugins

Integrate SSO capabilities with third-party plugins to streamline user authentication and enhance security in WordPress.

By integrating SSO with third-party plugins, you can provide a unified and secure user login experience across various platforms. This integration ensures compatibility with existing plugins, maintaining a seamless user experience.

To set up SSO with third-party plugins, you need to ensure that the plugins support SAML Single Sign-On and follow the proper setup procedures. This typically involves configuring the third-party plugin to act as the Identity Provider (IdP) and configuring WordPress as the Service Provider (SP).

Once configured, users can log in to WordPress using their SSO credentials, and the SSO plugin will handle the authentication process. This integration simplifies user management and increases security by centralizing user authentication and reducing the need for multiple login credentials.


In conclusion, setting up SAML Single Sign-On (SSO) in WordPress can greatly enhance the security and convenience of your website. By following the steps outlined in this article, you can easily configure SAML SSO using a WordPress plugin, map user attributes, and test the SSO configuration.

This will allow users to access multiple applications with just one set of login credentials, improving the user experience on your website. So, don’t hesitate to implement SAML SSO and enjoy the benefits it brings to your WordPress site.

How to Fix the “Sorry, You Are Not Allowed to Access This Page” Error in WordPress?

This article provides a step-by-step guide on how to fix the “Sorry, You Are Not Allowed to Access This Page” error in WordPress. It covers topics such as installing and configuring a SAML Single Sign-On plugin, obtaining and configuring IdP metadata, mapping user attributes from IdP to WordPress, testing and enabling SSO configuration, and integrating SSO with third-party plugins. By following these steps, users can enhance website security, streamline user authentication, and ensure seamless access and functionality on their WordPress site.

Table of Contents