LoginSignup
1
1

More than 1 year has passed since last update.

【Slack】Webhook経由ででユーザーグループにメンションする

Posted at

概要

slack-apiを使ったIncoming Webhook経由で<@group_name>でメンション飛ばす

やり方

スラックのアプリではなく、メンション飛ばしたい

以下のURLからSlackのWeb版でログインして、

サインイン

UserGroupの設定画面からIDを取得したいUserGroupを指定すると、以下のようなURLが表示される。
※取得したいユーザーグループをクリックし、編集しようとすると出る。
"user_groups" というパスのあとにあるのがUserGroupのIDです。

https://app.slack.com/client/{Client_ID}/browse-user-groups/user_groups/{UserGroup_ID}

取得したUserGroup_IDを下記に入れ込めば、ユーザーグループをメンションすることができる。

<!subteam^{UserGroup_ID}>

参照

https://qiita.com/tamorieeeen/items/de6c34760e2d8550f123
https://www.pospome.work/entry/2021/12/08/024042

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1