Skip to content
Back

Automatically Assigning the user and team to document

  • 0
  • Databases
  • Realtime
  • Cloud
BloxEZ
18 May, 2025, 00:36

Hey AppWriters! Day 2 for me 😅

I'm reading the docs https://appwrite.io/docs/products/auth/team-invites In order to understand how a document is added then only accessible to the user/team that created it.

  1. I see lots of really useful code examples, but I don't see enough context. For example, only a Team Admin role should be able to invite or remove a team member.
  2. When a document is created, can we automatically assign the team id, per the auth token, to a team_id on a document?

Just need to get a foot hold on this stuff then I'll be flying!

Thanks for your support 😅

TL;DR
Developers want to automatically assign the user and team to a document in Appwrite. They seek clarity on roles for inviting/removing team members and want to automatically assign a team ID to a document based on the auth token. Solution: Check the documentation for relevant code examples and ensure roles are properly set. Automatically assign the team ID to a document based on the user's auth token.
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