![](https://cdn.discordapp.com/embed/avatars/0.png)
Hello, I want to implement server side listDocument (listed) and getDocument (detail) with authentication JWT.
For listDocument, authentication with JWT successfully
but for getDocument, it's always return user_unauthorized
.
I was make sure the user who want to get document have privileged to see document.
Even the document set permission to Any, it's same return user_unauthorized
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
Does the collection for that document have any relationship attributes?
![](https://cdn.discordapp.com/embed/avatars/0.png)
Yes, they have
![](https://cdn.discordapp.com/embed/avatars/0.png)
Owh,, I see.
![](https://cdn.discordapp.com/embed/avatars/0.png)
Because that document have relationship to other collection who not have permission.
Recommended threads
- How to generate a database-setup script ...
I've written a vue.js webapp with appwrite-cloud-db (including relations) and everything works just perfectly! Now I want to release this webapp as an open sou...
- Issues with storage/database adding func...
Hi, I`m working on a register form where I need to upload a document to a storage as well as creating a new document in my database. For some reason I get an ex...
- Private identifiers are only available w...
Hello folks, hope you all doing fine. Have any of you faced the error below? ```sh node_modules/node-appwrite/dist/id.d.ts:2:5 - error TS18028: Private iden...
![](/images/bgs/pre-footer.png)