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.
- Use the preview user controls to switch accounts.
- Validate private pages and role-based access.
1) Switch the preview user ​
- In the editor, open preview mode.
- Open the preview user panel (the area that lets you select a user).
- 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
Middlewareand checks the current user.

