Tutorial: Set up page permissions

When you create your site, you may want to protect one or more pages so that only specific users or roles can view them. In this tutorial, we'll hide or show a page based on an authenticated user's web role.

  • Create page permissions
  • Assign to the authenticated web role
  • Observe how a page and a related menu item are hidden or shown based on the signed-in user's role

Prerequisites

Create page permissions

This video shows you how to restrict access to a specific webpage.

The following steps outline how to configure page permissions to restrict access to a specific page.

  1. Sign in to Power Pages.

  2. Select your site, and then select Edit.

  3. In the page navigation, select the ellipses ... to the right of a page, and then select Page settings.

  4. In the side tab, select Permissions.

  5. Select I want to see who can view this page.

  6. In the list, select the Authenticated Users web role.

    Screenshot of page settings in Microsoft Power Pages.

  7. Select OK.

Observe results

  1. In the design studio, select Preview to view your site.

  2. With no user signed in, observe that the web page that you protected doesn't appear in the main menu or navigation.

    Screenshot that confirms the protected page isn't visible to a user who isn't signed in.

  3. Sign in to your site. You can use Microsoft Entra ID for the purposes of this tutorial.

    The link to the protected page should be visible in the main menu and you should be able to view the page.

    Screenshot that confirms the protected page is visible because the user has signed in.

Page permissions allow you to specify which users or which roles have access to a specific webpage. Use table permissions to configure access to Microsoft Dataverse data.