在多租户环境中的租户之间共享用户的最佳实践
我目前正在考虑创建一个网络应用程序,使教师能够创建一个班级并将学生添加到他们的班级中。现在学生应该由老师创建(包括所有联系数据,如电话号码等)。每个教师都应被视为独立租户。
现在,在平台的某个时刻,学生将不得不由两名不同的老师分到两个不同的班级。但是,我希望所述学生必须同意存储他们的数据,并且不会自动在租户之间共享个人信息。在未来的某个时候,他们还应该能够自己登录并调整允许哪个老师访问哪些数据。
一个用例是学生参加法语和数学课。他们希望法语老师有手机号码,以便在课程取消时能够给他们打电话,但数学老师却不想。
因此,总而言之,应用程序应该具有多租户意识,但同时为用户提供一定的灵活性。
关于阅读最佳实践和这种非正统的多租户概念有什么建议吗?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这并不是真正的多租户问题,更多的是单个 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: