I want to create a user group that is everyone except those with, say, @domain.com. Is this possible today in Discourse?
I’m fairly certain that you would need a custom plugin.
I think it would be pretty easy, an hour or two, depending on the details like how easily it can be configured and if there are specs.
Thinking more…not only would this be a great feature, but also the ability to create a dynamic user group based on a data explorer query.
Or be able to use badge sql to award a badge that would add someone to a group. That would be pretty easy too.
I believe email addresses are sent in webhook payloads when a user account is created, so could this also be implemented using webhooks and the API (e.g. for sites hosted by CDCK that can’t use badge SQL)?
Yes, I confirme they are. ![]()
So you could use some automation tool to update groups like Trigger a Zapier task with Discourse Webhooks. That could be a lot of requests for Zapier to handle, so it could get expensive.
What do you do with everyone sans a domain/group? Knowing how you’d use that group will flesh out this feature. ![]()
If you are going to get webhooks involved, I would add everyone to the target group, create a second programmatic group with domain.com auto-added, and then only fire off webhooks only on user events from the second group, which removes those accounts from both groups.
I… spend a lot time budgeting webhooks. ![]()
My immediate use case was creating a user group of all users minus employees.
저는 모든 사람이 자기소개 카테고리에 자기소개를 하도록 요구합니다. 그들이 그렇게 할 때마다, 자기소개를 완료했음을 나타내는 그룹에 그들을 추가합니다.
자기소개를 하지 않은 사람들에게 연락하여 자기소개를 하도록(이것은 필수 요건입니다) 상기시키고 싶습니다.
즉, ‘이미 완료한’ 그룹의 반대 개념인 ‘미완료한’ 그룹이 필요합니다.