Skip to content
Sites Hackathon is live / Aug 29 - Sep 12
Back

Appwrite Realtime not working with User permissions + Row Security in Next.js

  • 0
  • Databases
  • Web
Saimon
30 Aug, 2025, 03:07

Hi, I’m facing an issue with Realtime + Row Level Security in Appwrite.

  1. I set my collection permissions to: User Create, Read, Update, Delete
  2. Row Security is enabled.
  3. In this setup, Realtime data is not fetching.
  4. After reload I can see the update.šŸ‘

But if I change the collection permission to Any Read, then Realtime works fine (even with Row Security enabled).

This is a Next.js project. Repo for reference: https://github.com/nextSaimon/demo

Can someone please help me fix this so that Realtime works properly with User-level permissions + Row Security in Next.js?

TL;DR
Issue: Realtime not working with User permissions + Row Security in Appwrite for Next.js project. Solution: Change collection permissions to `Any Read` instead of `User Create, Read, Update, Delete` to enable Realtime data fetching while keeping Row Security enabled.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more