
I have a user collection and Im storing the accountId along with other user details. I want to get the current user's details. I tried to do this by getting the current account then passing the accountId as query in listDocuments.
Problem: It throws The current user is not authorized to perform the requested action.
Im using: Cloud, Client SDK. React
Would appreciate some help. 🙏

do you have a relationship on the collection?

Hey @Steven Thanks for the prompt response. Yes I do... Do I need to add the same permission to the other collection?

Update: Added same permission to the relationship colection. All good! This is solved 👍

[SOLVED] The current user is not authorized to perform the requested action.
Recommended threads
- Cannot access my Appwrite database on th...
Hello guys, I am currently developing a web app and using appwrite for authentication, database, storage and messaging. It was working well but since yesterday...
- Nuxt Middleware Support
So I'm trying to protect some routes so that the user is redirected back to the login screen should they not have an active session. However, I'm stuck in a lo...
- Sites Problem
Hi, I keep getting this problem when deploying my site. I have already made sure the site is active which it is. It even shows the preview of my site but when ...
