How to ping a Slack user group?

:bullseye: What is your goal?

I want to send a Slack message that mentions a user group so that all members get notified.

:thinking: What is the problem & what have you tried?

When i write @user_group_name, it dosen’t mention it, but it just write it in my Slack message.

So i tried by the Slack user group ID (in my case : S0AGYG*****).
I also tried putting in the message text, but it only displays as plain text and does not actually ping the group.

I tried by a user and bot connection, both dosen’t change anything.

:clipboard: Error messages or input/output bundles

There are no explicit error messages. The output is the Slack message itself, which shows the group mention as text instead of triggering a notification.

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Hi @Yali,

To mention a user group in Slack’s API, you need to use the special syntax and the Group ID:

<!subteam^S0AGYG*****>

(Formatting message text | Slack Developer Docs)

Cheers,
Henk

1 Like

Hey Yali,

it needs to be enclosed in <> and starting with !

So for example <!everyone> will ping everyone in the channel. Just replace everyone with the group ID and it should work.

Thanks, that works !

1 Like