Notification Indicator Counter does not work with multitenant

Using
Jmix version: 2.6.1
Jmix Studio Plugin Version: 2.6.2-252
IntelliJ version: IntelliJ IDEA 2025.2 (Ultimate Edition)
Addons: Multitenacy, Notifications

I have a user in a tenant with username tenant1|panos.
User has a custom role that does not define anything about notifications and the notifications-in-app-notifications-reader role.

User admin has the roles system-full-access and notifications-administrator.

I have a service that sends a notification in this user and the admin

@RequiredArgsConstructor
@Component
public class UsersNotify {

    private final NotificationManager notificationManager;
    private final NotificationTypesRepository notificationTypesRepository;

    @Authenticated
    public void execute() {
        notificationManager.createNotification()
            .withSubject("test")
            .withRecipientUsernames("tenant1|panos", "admin")
            .toChannelsByNames(InAppNotificationChannel.NAME)
            .withContentType(ContentType.PLAIN)
            .withBody("just a test")
            .withType(notificationTypesRepository.getTypeByNameOpt("info").get())
            .send();
    }
}

For user admin, notificationsIndicator counter get updated and i can see in the popup dialog the notifications.

For user tenant1|panos notificationsIndicator counter does not get updated and there is no notifications in the popup dialog.

Checking the database i can see that the notification is there

id type subject body content_type recipient read_status created_by created_date sys_tenant_id
0198f0a5-2825-7d0f-8e60-576cd5ba8014 info test just a test text/plain; charset=UTF-8 tenant1|panos 20 system 2025-08-28 15:26:52.325000 NULL

i also tried with the value ‘tenant1|panos’ in column sys_tenant_id, but with no luck.
i also tried with role notifications-administrator for user ‘tenant1|panos’ again with no luck.

Am i missing something?

Hi Panos!

Thank you for report problem. Ticket for it was issued: Absence of in-app notification for multi tenant user · Issue #4688 · jmix-framework/jmix
As work arround you can set manually tenant id (tenant1 - without user name) in sys_tenant_id column of ntf_in_app_notification table.

Regards,
Igor