Back

[SOLVED] How do you know which permission a document has from the sdk?

  • 1
  • Databases
  • Cloud
Dipen
2 Jun, 2023, 03:34

[SOLVED] After updating the document security, I want to know which permission is given to specific document from the SDK, How can i get it?

TL;DR
To identify the permission of a document using the SDK: 1. List the documents. 2. Retrieve the document you want to check. 3. Look at the `$permissions` attribute on the document. This solution was shared in a support thread and marked as solved.
Drake
2 Jun, 2023, 03:37

List documents. When you get it, look at $permissions attribute on the document

Dipen
2 Jun, 2023, 03:38

ok sure! Thanks

Drake
2 Jun, 2023, 03:59

[SOLVED] How do you know which permission a document has from the sdk?

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