Back

Database Collection Permissions

  • 0
  • Databases
  • Cloud
Zsombor
29 Oct, 2024, 10:54

Hi, i would like to create a document in a collection, and i would like to set up a permission so just the user who created the document can read it. This has to happen at registration. But i cant give the permission because there is no session yet. I cant create a session before this. What should i do?

TL;DR
Developers want to set up permissions in a collection so only the creator can read the document but are having trouble due to the lack of a session at registration. One solution is to generate a unique identifier for the user and link it to the document upon creation, allowing for access control without relying on sessions.
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