OfficeDev / microsoft-teams-apps-company-communicator

Company Communicator app template
MIT License
329 stars 400 forks source link

App not installed error for User Company Communicator App (users are not recieving messages) #1575

Open ArunkumarTMEYGDS opened 1 week ago

ArunkumarTMEYGDS commented 1 week ago

Hi Team,

We have been able to deploy the company communicator app.

As a part of testing we tried sending message to Team, where a test users were part of. We are able to draft and preview the message in Author app. While trying to send it to the users via Team (M365 Group) we are getting error with no users recieving messages. On checking the report logs, it mentions App not installed for all the users, where as as logged in as test user, we can see the App present and can open to check for messages.

Sharing screenshot of Log report:

Error

Please advice what could be the reason. We have tried to the following troubleshooting steps:

  1. Tried removing and adding app both user and author with new version number.
  2. Tried syncing and restarting function apps.
peddivyshnavi commented 1 week ago

Hi @ArunkumarTMEYGDS Thanks for reaching out to us we will check and will get back to you within 48 Hours.

peddivyshnavi commented 1 week ago

Hi @ArunkumarTMEYGDS we suspect this issue is related to app policies. As a part of troubleshooting call which we have attended for GitHub issue(1546) we see team's policies are not assigned to Global (Org-wide default) they were assigned to custom policies. could you please reassign it to Global (Org-wide default)

image
ArunkumarTMEYGDS commented 1 week ago

Hi @peddivyshnavi,

Sharing details from our Teams Platform Team below:

  1. Our Dev and QA Teams tenant are both migrated to group based management so app permission polices no longer apply.
  2. The apps are now assigned to users or groups on an app by app basis, Tech News user and Admin apps are currently assigned to Everyone.

Can these be causing any issue in terms of sending the message?

peddivyshnavi commented 6 days ago

Hi @ArunkumarTMEYGDS we will check and will get back to you within 48 Hours.

peddivyshnavi commented 6 days ago

Hi @ArunkumarTMEYGDS Could you please confirm whether you were able to send messages through remaining options.

ArunkumarTMEYGDS commented 6 days ago

@peddivyshnavi No we are not able to send via any options.

peddivyshnavi commented 6 days ago

Hi @ArunkumarTMEYGDS we were checking on the issue and will get back to you within 48 Hours.

peddivyshnavi commented 4 days ago

Hi @ArunkumarTMEYGDS we are checking on this issue will update you as soon as possible

clarkec2 commented 4 days ago

We are also having this issue, we however have not migrated to app centric management and we have confirmed it is enabled in all of our permission/setup policies. We receive the same error in the message export for some users not all. We were initially facing it throughout all of the messages and once we cleared the UserIDs from the User table we were able to send once it aggregated the users back into the table. Now we still see it but its maybe 1% of the users in our org. We additionally contacted the users who were part of testing and made sure to reset and repair their apps to make sure the local cache wasnt the issue and it still wont send to them throwing the same error.

clarkec2 commented 3 days ago

So investigating this we noticed that all the users who we see with the "-2 : App Not Installed" error are missing from the storage account tables entirely. We have broadened our tests and it appears to be affecting around 10% of the users in our org. I can manually add them to use the tables and they should able to receive messages, however with it affecting 10% of the user base that works out to potentially 5k users. What would the best method be to automatically push the app out again? Would reuploading and assigning it to the policy be best or does it need to be redeployed in Azure for the proactive install to kick off?