diff --git a/lib/icingadb/icingadb-objects.cpp b/lib/icingadb/icingadb-objects.cpp index 1f6f85a37..cc4fc4624 100644 --- a/lib/icingadb/icingadb-objects.cpp +++ b/lib/icingadb/icingadb-objects.cpp @@ -1672,6 +1672,15 @@ void IcingaDB::SendSentNotification( xAdd.emplace_back(GetObjectIdentifier(endpoint)); } + if (!users.empty()) { + Array::Ptr users_notified = new Array(); + for (const User::Ptr& user : users) { + users_notified->Add(GetObjectIdentifier(user)); + } + xAdd.emplace_back("users_notified_ids"); + xAdd.emplace_back(JsonEncode(users_notified)); + } + m_Rcon->FireAndForgetQuery(std::move(xAdd), Prio::History); for (const User::Ptr& user : users) {