Previewing as another user
We can preview changes to the website without logging out and logging on again as another user. This preview capability enables you to quickly verify that users with different access levels see only content that 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 that 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: You are not authorized to use this portlet. This message displays to make it cleas 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 permissione required for previewing as another user, see Access control for managed pages.
- Log on to the WAS admin console as an administrator.
- Click Resources > Resource Environment > Resource Environment Providers.
- Click WP ConfigService, and then click Custom properties.
- Click portlets.unauthorized.visible.project. Set the value to false to suppress the message. The default value is true.
Parent: Set up a portal site
Related:
Access control for managed pages