Skip to content
Back

Creating document with doc level permissions - assigning user and team

  • 0
  • Databases
  • Cloud
BloxEZ
19 May, 2025, 13:20

I create a document and add permissions for the user and their team (using team ID). When I retrieve the document the team level permissions are not there, but the user permissions are. If I add the team permissions in the console and retrieve the doc in my app, I can see the permissions that I would expect for user and team.

The attached screen snip shows the data passed into the create call, followed by the data returned from the get document.

The format of the permissions used in create are exactly the same as what I get back if I have added the team permissions manually in the console.

I also tried [teamid]/member as suggested in the custom permissions, but this made no difference.

Any thoughts team?

TL;DR
- Developer is having issue with document permissions not showing for team when using team ID. - Adding team permissions manually in the console displays expected permissions. - Tried using [teamid]/member for custom permissions but had no effect. - Solution: Double-check the format of permissions used in create call and ensure it's correct for team permissions.
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