Back

Get documents created by the user

  • 0
  • Databases
  • Users
Binyamin
4 Apr, 2023, 14:29

But From my experience the database module in client side is good for pure CURD methods and the only dynamic option you have is permission based

TL;DR
Users in a support thread are discussing a way to get documents created by a user using the appwrite API. One user suggests checking the Github issue #3623 for a possible solution, while another suggests opening a new Github issue if a solution is not found. It is mentioned that the current functionality of the appwrite API only allows for CRUD operations and permission-based actions. There is no clear solution provided in the thread.
Binyamin
4 Apr, 2023, 14:30

Maybe it has and I missed something

D5
4 Apr, 2023, 14:31

And I think CRUD is just probably the only thing needed for most use-cases

Binyamin
4 Apr, 2023, 14:31

Wym?

D5
4 Apr, 2023, 14:32

That most apps, except for specific tasks, they just make CRUD. For example social networks or discord. Create/read/update/delete messages

Binyamin
4 Apr, 2023, 14:32

Ohh I got it

Binyamin
4 Apr, 2023, 14:33

What do happens is that any document created by any user get this

TypeScript
By default, only the current user is granted all permissions

So you be able to block other users edit of the document

Binyamin
4 Apr, 2023, 14:35

But that is only from a permissions aspect and it won't be possible to prevent your userid being falsified

D5
4 Apr, 2023, 14:35

Yes, but for example, in discord how do you see who created the message. If you get the message and add a field where there is the user ID, I could create a message and put in such field your user ID so then it will appear as the message was created by you

D5
4 Apr, 2023, 14:35

https://appwrite.io/docs/client/databases?sdk=web-default#databasesListDocuments

I can't find anything related, maybe it's possible, but doesn't seems to

joeyouss
4 Apr, 2023, 14:38

Hey @D5 seems like this could be a feature request - let me check if anything regarding this is already put up on our github, if not, do you mind opening a github issue? this way it gets prioritized more!

D5
4 Apr, 2023, 14:39

Ok, so confirmed that it's not possible to get the user that created it at this moment?

D5
4 Apr, 2023, 14:49

Created. Don't forget to 👍 if you think it's needed

joeyouss
4 Apr, 2023, 14:53

thanks!

D5
4 Apr, 2023, 14:57
D5
4 Apr, 2023, 14:57

Who is what @Binyamin said, making it through a function

joeyouss
4 Apr, 2023, 15:04

Yep, was gonna send it to you - so, yeah no we dont have that right now but

joeyouss
4 Apr, 2023, 15:04

also

joeyouss
4 Apr, 2023, 15:04
D5
4 Apr, 2023, 15:06

Didn't found that. I will close the other issue to prevent duplicate

joeyouss
4 Apr, 2023, 15:07

You can just leave a comment closing because backlinking this - and probably upvote 3623 and leave a comment there?

D5
4 Apr, 2023, 15:07

That's what I've made

D5
4 Apr, 2023, 15:11

Liked the other issue

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