Can't sent notification for restricted issue from team-managed project

Hello, everyone!
My plugin is sending notifications for issues. I use endpoint /rest/api/3/issue/{issueIdOrKey}/notify. It works fine in all cases except restricted issues from team-managed projects. I only get a message

‘Issue does not exist or you do not have permission to see it.’

and 404 not found error.
I tried using .asUserByAccountId({myPlugin'sAccountId}). But my request fails with a 403 FORBIDDEN error and this message:

‘Add-on ‘my-app-name’ disallowed to impersonate the user because ‘no valid active user exists’

How can I send notifications for those issues?