Issue with Groups/Notification - v4.6

Hello,

Notifications can be sent by groups as well as users directly. So i did the following :

  • create a notification, assign to a user. Email / sms is received
  • Remove user assignment. Assign notification to group, assign user to group. Notification is not sent.

Furthermore, after deleting the group i created, log out / back in, i cannot see the group anymore nor the notifications under general > group/notification. But the group is still in the tc.groups table. What's even more weird: i can see the group when i go to users > select user > notifications/group.
I found that my admin user has to have these notifications against its user to be able to see them under general > notifications. But if i assign these to a group instead, assign my admin user to a group, no notifications are received.
Can you advise if this has been found in 4.6 ? i am wondering if there is a link with this maybe : https://www.traccar.org/forums/topic/3-12-web-ui-events-panel-empty-and-events-notification-not-displayed/page/3/

Thank you for your help

NOTIFICATIONS
It looks like notifications are associated by default on the user who creates it. If the user is an admin and the notification is deselected on the user page, then you can't edit the notification anymore (as soon as you log out/log back in).
I have 2 admins : traccar admin account and user who is full admin :
*traccar admin creates notification 1, remove from user profile, log out/back in, notification is gone

  • second admin logs in : notification 1 not available under general > notification, but it is under user > notification

GROUPS
My admin is part of two user groups. If i deselect those under user > groups, then i cant't see the groups anymore under general > groups (after og out/log back in). Meaning i can't allocate notifications to this group either.

I'm not sure if this is why only notifications assigned to a user works, but that may help with explaining the behavior. Looking forward to your help,thank you

webo5 years ago

Try enabling this in the config: deviceManager.lookupGroupsAttribute

thank you @webo, it looks like i missed that one. Looks like the notifications are now received ! Worth noting however that as soon as my admin user is removed from any groups, i canot assign a user to a group or a notification to a group / device...The admin user has to be part of a group to see the notifications. Not sure if it's by design, but the core issue i was having is solved. Thank you once again.