Back

The current user is not authorized to perform the requested action.

  • 0
  • Databases
  • Web
  • Cloud
ItsMeAlfie0
19 Jan, 2025, 19:11

This seems to be occurring when accessing a document with relationships to other documents that have document security on.

const udb = await databases.getDocument(import.meta.env.CV_DB0_ID, "user", user.$id)

TL;DR
Developers are experiencing authorization issues when accessing documents with related data due to security settings. A temporary fix has been implemented by enabling read access on the collection.
ItsMeAlfie0
19 Jan, 2025, 19:11

This has really stumped me

ItsMeAlfie0
19 Jan, 2025, 19:36

Ive done a temporary fix (enabling read on the collection) while i await a response.

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