Appearance
Return
How to preview as a different user
Test your app as another user to validate private pages, roles, and data visibility.
Steps at a glance
- Open preview mode.
- In preview mode, click the user button above the page and pick a user under
Connect as. - Validate private pages and role-based access.
1) Switch the preview user
- In the editor, click
Previewat the top of the editor. - Click the user button above the page, on the right. It shows
Not connected, or the email of the user you are previewing as. - Under
Connect as, pick a different user. To preview as a visitor who isn't signed in, clickDisconnect.

Learn more about the user preview panel →
2) What to test
- Private pages (signed out vs signed in).
- Pages restricted to specific roles.
- Data shown in lists and detail pages.
Common pitfalls
The UI does not change after switching users
- Refresh the preview page to ensure the session and current user are updated.
The API still returns data for the wrong user
- Ensure your API is secured with
Securitysettings and checks the current user.

