+

Search Tips   |   Advanced Search

Preview as another user

We can preview changes to the website without logging out and logging on again as another user. This preview capability enables us to quickly verify that users with different access levels see only content they are authorized to see. We can preview changes as a specific user or as an unauthenticated user.

While in edit mode, click More, and then click either As User or As Unauthenticated User. The page is updated according to the user we are impersonating.

To stop previewing, click Stop Previewing.

We can modify the preview function to tailor preview behavior in the following scenario:

  • User1 creates a project and a page within the project. The new page contains a portlet.

  • User1 then attempts to preview the page as User2. In this case, User2 has the permissions to view the page but does not have the permissions to view the portlet that is on the page.

  • User1 receives the following message: We are not authorized to use this portlet. This message displays to make it clear that a portlet is rendered here, if the user has the required permissions.

We can suppress the message in this scenario.

For more information about the access permissions required for previewing as another user, see Access control for managed pages.

  1. Log on to the WAS admin console as an administrator and click...

      Resources | Resource Environment > Resource Environment Providers | WP ConfigService | Custom properties | portlets.unauthorized.visible.project

    Set the value to false to suppress the message. The default value is true.


Parent Develop content

Related concepts:

Access control for managed pages