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, open the user menu in the top bar and use
Connect asto switch accounts. - Validate private pages and role-based access.
1) Switch the preview user ​
- In the editor, open preview mode.
- Open the user menu in the top bar and choose
Connect as. - Pick a different user and reload the page if needed.
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.

