User Impersonation

Experience your application as any user.

Stage:
Public Beta
Available on self-hosted:
Yes

User Impersonation in Supabase allows developers to simulate the experience of any user within their application. This feature is particularly useful for testing and debugging, as it enables you to view and interact with your application exactly as a specific user would.

Key benefits

  1. Realistic Testing: Validate user-specific features and permissions by impersonating users directly in Supabase Studio.
  2. RLS Policy Verification: Test Row Level Security (RLS) policies with real data to ensure they function as intended.
  3. Enhanced Debugging: Quickly identify and resolve user-specific issues by experiencing the application from their perspective.
  4. Seamless Integration: Use the Table Editor, SQL Editor, and GraphiQL to impersonate users and test queries and mutations.
  5. Efficient Development: Accelerate the process of writing and testing RLS policies, reducing development time and effort.

User Impersonation is particularly valuable for:

  • Developers testing user-specific features and permissions
  • Teams implementing complex RLS policies
  • Applications requiring detailed user experience validation
  • Debugging user-reported issues with precision

By leveraging User Impersonation, you can ensure that your application delivers the intended experience for every user, enhancing both functionality and security. This feature empowers developers to create more robust and user-friendly applications by providing a comprehensive toolset for testing and validation.

Read Documentation
Share

Build in a weekend, scale to millions