Rank 1: Thread
Hello everyone!
First of all, thank you for the continuous development and community effort! It is a joy to work with Appwrite and its SDK.
We are using Appwrite as a backend for our Flutter application and are facing some design decisions. Our App shall group users / devices and allow them access to documents that are scoped to this groups.
Similar to Discord, users shall be able to join this group without having to leave the app. For this we are thinking of scanning a QR code on devices that are already part of the group or simply sharing a link that contains the group id.
My question now is how we would setup Appwrite to provide correct scoping and permissions. I thought of creating a team per group and then set the permissions of each document scoped to the group with permissions restricted to the team. However, as far as I understand it is not possible to join a group directly as a user without an invitation of the owner, is this correct? Additionally, users might be "Anonymous" and cannot receive any Invite material via Email/Phone etc.
Can this be achieved via Functions? I understand that it might seem ridiculous to scope the permission to a team when everyone can join, but we believe this way we can easily change the membership mechanism without affecting existing permissions and document access.
Please let me know if more information is required! We are happy of any suggestion and ideas to solve this design problems 🙂
BR and thanks in advance!