How to mention a user group in slack notification, how to check the id of the user group

How to notify slack

There are several methods, but I wrote the following article "[How to do 2 (via app)](Summary of how to notify slack with python) ) ”Is often used. Summary of how to notify slack with python

How to mention a user group

Mentions can be added by writing the following in the text parameter. <!subteam^id>

In the above notation, if ʻidis the id of the user group and the id of the user group is "A123BCDEFGH" It will be written as<! Subteam ^ A123BCDEFGH>`.

(You can check the user group from slack in "Member Directory and User Group> User Group")

Check id

Go to the following page of slack API, fill in the Value of Required part and press "Test Method". For Value at this time, use the Value of the workspace where the user group whose id you want to check is set. https://api.slack.com/methods/usergroups.list/test

Then, the following result will be returned. Find the user group name you want to mention from "name" in it, and the id in that object will be the target.

All displayed results are in Unicode notation. image.png

Supplement-How to add basic mentions

The notation of the basic mention destination is as follows. Change of mention specifications via Slack API (2018/9/12 ~)

Mentions can be made using <@ display name>, <! Channel>, <! Here>, and <! Everyone>.

References

Summary of how to notify slack with python Post to slack with Python3 Change of mention specifications via Slack API (2018/9/12 ~)

Recommended Posts

How to mention a user group in slack notification, how to check the id of the user group
How to check the memory size of a variable in Python
How to check the memory size of a dictionary in Python
A story of trial and error trying to create a dynamic user group in Slack
How to check in Python if one of the elements of a list is in another list
How to determine the existence of a selenium element in Python
How to check the version of Django
[TensorFlow 2] How to check the contents of Tensor in graph mode
How to get the vertex coordinates of a feature in ArcPy
I made a program to check the size of a file in Python
How to calculate the volatility of a brand
How to count the number of elements in Django and output to a template
A memorandum of how to execute the! Sudo magic command in Jupyter Notebook
How to make a Raspberry Pi that speaks the tweets of the specified user
How to get a list of files in the same directory with python
How to get the number of digits in Python
How to display the modification date of a file in C language up to nanoseconds
How to identify the element with the smallest number of characters in a Python list?
How to find the optimal number of clusters in k-means
[python] How to check if the Key exists in the dictionary
How to use the __call__ method in a Python class
I made a function to check the model of DCGAN
How to develop in a virtual environment of Python [Memo]
How to generate a query using the IN operator in Django
How to check if a value exists in an enum
How to get the last (last) value in a list in Python
How to get a list of built-in exceptions in python
How to find the scaling factor of a biorthogonal wavelet
How to get a quadratic array of squares in a spiral!
How to connect the contents of a list into a string
How to display the regional mesh of the official statistics window (eStat) in a web browser
How to quickly count the frequency of appearance of characters from a character string in Python?
How to specify an infinite number of tolerances in the numeric argument validation check of argparse
How to check if the contents of the dictionary are the same in Python by hash value
While solving the introductory statistics exercise 12.10, check how to draw a scatter plot in pandas.
How to plot the distribution of bacterial composition from Qiime2 analysis data in a box plot
How to pass the execution result of a shell command in a list in Python (non-blocking version)
How to make a slack bot
How to display a specified column of files in Linux (awk)
How to handle multiple versions of CUDA in the same environment
[sh] How to store the command execution result in a variable
How to implement Java code in the background of RedHat (LinuxONE)
A note on how to check the connection to the license server port
How to know the internal structure of an object in Python
How to get all the possible values in a regular expression
How to change the color of just the button pressed in Tkinter
How to get the ID of Type2Tag NXP NTAG213 with nfcpy
[Introduction to Python] How to use the in operator in a for statement?
How to find the memory address of a Pandas dataframe value
How to output the output result of the Linux man command to a file
The first artificial intelligence. How to check the version of Tensorflow installed.
How to create a large amount of test data in MySQL? ??
A command to easily check the speed of the network on the console
Create a function to get the contents of the database in Go
[NNabla] How to remove the middle tier of a pre-built network
How to take a screenshot of the Chrome screen (prevent it from cutting off in the middle)
How to write when you want to put a number after the group number to be replaced with a regular expression in re.sub of Python
I want to improve efficiency with Python even in the experimental system (5) I want to send a notification at the end of the experiment with the slack API
Tweet in Chama Slack Bot ~ How to make a Slack Bot using AWS Lambda ~
Check the behavior of destructor in Python
How to check local GAE from iPhone browser in the same LAN