通过 SSO 添加新组

我在 Discourse 上使用 SSO。我希望在设置 add_groups(例如 grp1,grp2,grp3)时,如果某些组(如 grp1 和 grp3)已存在,但 grp2 不存在,Discourse 能够创建 grp2 将当前用户添加到该组。这可行吗?

1 个赞

I have this use case too, I am trying to automatically add my AD users to groups named after the “department” field in our directory but it only works if i generate all the groups first. It would be very cool if we had a “sso can create groups” option in Discourse settings that made a new group with default settings. I mainly want to use it for easily finding all the users belonging to each department at work :slight_smile:

1 个赞

I recommend using our API to create the groups, it feels super messy trying to add this to the SSO protocol. Too many bad things can happen.

5 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.