在多租户环境中的租户之间共享用户的最佳实践

发布于 2024-12-23 10:31:11 字数 361 浏览 2 评论 0原文

我目前正在考虑创建一个网络应用程序,使教师能够创建一个班级并将学生添加到他们的班级中。现在学生应该由老师创建(包括所有联系数据,如电话号码等)。每个教师都应被视为独立租户。

现在,在平台的某个时刻,学生将不得不由两名不同的老师分到两个不同的班级。但是,我希望所述学生必须同意存储他们的数据,并且不会自动在租户之间共享个人信息。在未来的某个时候,他们还应该能够自己登录并调整允许哪个老师访问哪些数据。

一个用例是学生参加法语和数学课。他们希望法语老师有手机号码,以便在课程取消时能够给他们打电话,但数学老师却不想。

因此,总而言之,应用程序应该具有多租户意识,但同时为用户提供一定的灵活性。

关于阅读最佳实践和这种非正统的多租户概念有什么建议吗?

I am currently considering to create a web application that enables teachers to create a class and add pupils to their class. Now the pupils should be created by the teacher (including all contact data like phone number etc.). Each teacher should be considered an independent tenant.

Now at some point in the platform a pupil will have to end up in two different classes by two different teachers. However I want said pupil to have to consent to their data being stored and not automatically share personal info across tenants. At some point in the future they should also be able to log in themselves and adjust what data they allow which teacher to access.

A use case would be that a pupil attends a french and a math class. They want the french teacher to have the cell phone number to be able to give them a call in case class gets cancelled, but not the math teacher.

So all in all the app should be multi-tenancy aware but at the same time allow for some flexibility for the users.

Any suggestions on reading on best practices and such an unorthodox multi-tenancy concept?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤云独去闲 2024-12-30 10:31:11

这并不是真正的多租户问题,更多的是单个 Web 应用程序中的权限问题。

这实际上是 SharePoint 免费版本中的内置功能。要在 SharePoint 中执行此操作,您需要:

  • 为学生创建网站模板
  • 教师将根据模板为每个学生创建一个网站 教师
  • 将授予学生对其网站的管理权限
  • 然后学生可以向任何他们想要阅读的人授予权限权利。

This is not really a multi tenant problem, it is more a rights problem within a single web application.

This is actually built in functionality in the free version of SharePoint. To do this in SharePoint you would:

  • Create a site template for a student
  • The teacher would create a site for each student based on the template
  • The teacher would give the student admin rights on his/her site
  • The student could then give anyone they wanted read rights.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文