Skip to content

Commit 0bd30ae

Browse files
authored
Merge pull request #110 from pluginsGLPI/webhooks
update Webhooks Teams
2 parents 285aa41 + cb1ec21 commit 0bd30ae

File tree

10 files changed

+55
-26
lines changed

10 files changed

+55
-26
lines changed
71.5 KB
Loading
11.7 KB
Loading
22.5 KB
Loading
18.4 KB
Loading
51.9 KB
Loading

source/webhook/mattermost.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ Mattermost
3030

3131
.. figure:: images/Webhook-16.png
3232
:alt: URL incoming webhook
33-
:scale: 100 %
33+
:scale: 100 %
34+
35+
36+
- Go to :doc:`setup the webhook in GLPI <setup_glpi>`

source/webhook/rocket.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ Rocket
44
- You need to add an application to your team (the link is present in the bottom of the left sidebar) and select incoming-webhook
55

66
- Add a new configuration, select the channel where you want notifications and you will get the webhook url.
7-
- You can optionally setup a name and a logo for your hook.
7+
- You can optionally setup a name and a logo for your hook.
8+
9+
- Go to :doc:`setup the webhook in GLPI <setup_glpi>`

source/webhook/slack.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ Slack
66
- Click on the New integration button
77
- Select incoming webhooks, and define webhook parameters
88
- After save, you will get the url of the webhook.
9+
10+
11+
- Go to :doc:`setup the webhook in GLPI <setup_glpi>`

source/webhook/teams.rst

Lines changed: 41 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,55 @@
11
Teams
22
-----
33

4-
- From a Teams administrator account, go to the channel that will receive GLPI notifications
5-
- Click on the channel menu
6-
- Then **Manage channel**
4+
.. Warning:: Following the end of O365 connectors, Microsoft is imposing a new method of setting up your webhooks using workflows.
5+
This procedure must be implemented before August 15th. After this date, your webhooks will no longer function.
6+
Your webhooks used by incoming Webhooks (old method) will no longer be available
77

8-
.. figure:: images/Webhook-10.png
9-
:alt: manage channel
10-
:scale: 100 %
8+
.. Note:: The channel used must be public. Microsoft does not currently allow webhooks with Workflows from a private channel.
119

12-
- In the **Connectors** section,
13-
- click on **Modify**
10+
- From **Teams**, go to **Apps**
11+
- In the search box, enter **Workflows**
12+
- In the list of applications, click on **Add**
1413

15-
.. figure:: images/Webhook-11.png
16-
:alt: edit connector
17-
:scale: 75 %
14+
.. figure:: images/Webhook-21.png
15+
:alt: copy URL
16+
:scale: 58 %
1817

19-
- From the **incoming Webhook connector**
20-
- click on **Configure**
2118

22-
.. figure:: images/Webhook-12.png
23-
:alt: add webhook
24-
:scale: 100 %
19+
.. Note:: Some information may take a while to appear, so please be patient between each step and wait for the information
20+
to appear on the screen before moving on to the next step.
2521

26-
- Enter a name for your webhook and an image (optional)
27-
- Click on **Create**
2822

29-
.. figure:: images/Webhook-13.png
30-
:alt: setup webhook
23+
- From the desired Teams channel, click on the **···** menu
24+
25+
.. figure:: images/Webhook-22.png
26+
:alt: copy URL
3127
:scale: 100 %
3228

33-
- You will then be sent the URL of your webhook
29+
- Click on **Workflows**
30+
- Choose "**Post to a channel when a webhook request is received**"
31+
- In the new window, make sure that the current account has a sufficient licence to send webhooks
32+
33+
.. figure:: images/Webhook-23.png
34+
:alt: copy URL
35+
:scale: 88 %
36+
37+
- Teams will give you a summary of the selected channel. If you've got it right, click on Add Workflows
38+
3439

35-
.. figure:: images/Webhook-14.png
40+
.. figure:: images/Webhook-24.png
3641
:alt: copy URL
37-
:scale: 100 %
42+
:scale: 90 %
43+
44+
- The URL of your workflow appears. Copy it and keep it, it will be used to configure GLPI.
45+
46+
.. figure:: images/Webhook-25.png
47+
:alt: copy URL
48+
:scale: 85 %
49+
50+
51+
- Go to :doc:`setup the webhook in GLPI <setup_glpi>`
52+
53+
54+
55+

source/webhook/telegram.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,7 @@ Replace *mytoken* with the value of the token generated above
5656
- In the **my_chat_member** copy the **ID** value of the **chat**.
5757

5858
.. Warning::
59-
The negative sign **-** must also be copied
59+
The negative sign **-** must also be copied
60+
61+
62+
- Go to :doc:`setup the webhook in GLPI <setup_glpi>`

0 commit comments

Comments
 (0)