Discourse 上的私有群组规范

Hi,

In a project, we are using private groups with SSO feature. We are using Wordpress as SSO provider. Our all user groups are private and each group can display a separate category. These groups and categories are completely independent of each other.

Also, we are using automatically join group feature for joining these groups and it works correctly.: “Users who register with an email domain that exactly matches one in this list will be automatically added to this group”

Discourse’s default user groups specifications are is not offering enough options at this time for that.

What we need:

  1. Users can only see members in their group and send messages.
  2. Users can only view public profiles of members in their group.
  3. Users can only see members in their own group in user list. (not disable user directory, just customize that for user groups.)

What can we do? I am happy to hear your suggestions.

Thanks.

没什么特别的。简单的做法是:要么关闭用户资料功能,让任何人都无法查看任何资料;要么允许所有人查看所有资料。

一个插件或许可以覆盖用户列表,或者隐藏与查看者不在同一主组中的用户。如果其他用户出现在 JSON 加载中是可以接受的,那么通过主题组件隐藏与用户组不匹配的用户也是可能的。

这个问题时不时会出现。

如果你真的希望用户无法看到其他人,最好的办法是为每个组设立独立的论坛。你可以通过多站点功能来实现,这样仍然只需要一个容器。