Back

How do we create a link between authorized users and database collection to that user?

  • 0
  • Users
  • Accounts
  • Databases
Business of Technology
8 Jun, 2023, 13:56

I am creating a training courseware system and we want to be able to have the teachers for a course be an attribute on the course as well as the students for a course be an attribute. We know relational SQL and beyond, but we don't know how to connect the Auth user to the collection.

TL;DR
The user wants to create a link between authorized users and a database collection. One solution is to use Teams to share access to multiple users. They are unsure if they should create a unique team for each course. It is suggested to create separate roles for teachers and treat students as normal users. They want to have teachers and students as attributes for each course in the training courseware system. They are unfamiliar with how to connect the Auth user to the collection.
Susmita
8 Jun, 2023, 14:01

create log in and sign up and you have to use a separate role for teachers and treat students as normal users

Business of Technology
8 Jun, 2023, 14:36

Not all students will be registered for all courses. We need to limit who can edit a course, thus the teacher of that course. We also need to limit who can take the course on a course by course basis, thus the students.

Business of Technology
8 Jun, 2023, 14:45

Are we supposed to create a unique team for each course? Is that the platform approach?

Drake
8 Jun, 2023, 14:55

Teams is a way for users to share access to multiple users. so, yes, this might be a good use case for teams

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