You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-01-02 14:41:34

rt5504
Member
Registered: 2023-12-16
Posts: 24

email notifications

Hello, I would like to suspend email notifications for certain users or user groups.

How can I implement this?

Offline

#2 2024-01-02 17:14:08

sIBajHYG
Member
From: Mission [KS]
Registered: 2023-08-18
Posts: 75

Re: email notifications

List everyone who should receive notifications here.
2Kj3va.jpg

Last edited by sIBajHYG (2024-01-02 17:16:25)


Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0,  Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.

Offline

#3 2024-01-02 17:18:34

rt5504
Member
Registered: 2023-12-16
Posts: 24

Re: email notifications

yes, but I can't exclude any special users (accounts), can I?

Offline

#4 2024-01-02 18:13:05

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,811
Website

Re: email notifications

No, that wouldn't work for your use case. For example, if your ticket notifications have "Requester" as a recipient it will always send the notification to whoever is the requester. There is no option yet to exclude a specific group from the recipients.

Before I transitioned to working on GLPI full time, I made a plugin for my previous employer which allowed globally blocking notifications for users in specific groups.
It also had an option to deny users who were members of specific groups from logging into GLPI. This let us have the users in GLPI (imported from Active Directory) and active so they showed in dropdowns, but not allow them to actually log in.

After everyone gets back from the holiday break I'll see if this plugin, or at least the notification part, can be open-sourced/released or integrated into GLPI.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#5 2024-01-02 18:18:22

rt5504
Member
Registered: 2023-12-16
Posts: 24

Re: email notifications

That sounds great with the plugin.

In which files is this regulated so that I can exclude certain users, we often only get information and those who send it feel annoyed by the ticket system, i.e. by the notifications.

Can you tell me which files are important and where I can insert a code snippet to exclude certain users for the time being.

thank you in advance and happy new year.

Offline

#6 2024-01-02 18:31:44

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,811
Website

Re: email notifications

The notification code is quite complex. The plugin I created simply interacts with it via the plugin hook system, so it's much simpler. I don't have any information on how to manually change the notification code to exclude certain users at this time.

Your mail server may have a way to silently drop/delete emails sent to specific users from the email address used by GLPI. For example, in Microsoft Exchange it should be possible to accomplish this with a mail flow/transport rule.
Just be aware that this would block all notifications, including those for forgotten or expired passwords.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#7 2024-01-12 03:21:33

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,811
Website

Re: email notifications

The ability to exclude notification recipients is now a planned feature for GLPI 10.1.
https://github.com/glpi-project/glpi/pull/16355


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB