Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict sending Teams activity feed notifications - Found multiple applications with the same AAD App ID #1366

Open
makwanam opened this issue Aug 10, 2024 · 2 comments
Assignees

Comments

@makwanam
Copy link

makwanam commented Aug 10, 2024

Hello,

We have Teams tab application with activity feed notifications enabled and use the graph client to send out activity feed notifications to users.
We have followed this graph documentation (the example#2) - https://learn.microsoft.com/en-us/graph/api/userteamwork-sendactivitynotification?view=graph-rest-1.0&tabs=csharp

Followed below guides and code samples,
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/send-activity-feed-notification?tabs=desktop
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/graph-activity-feed/csharp

The Teams activity feed notifications were working fine until recently.
Recently, after manifest update, we have started getting this error - "Found multiple applications with the same AAD App ID - a Teams Application ID is required to resolve which application is correct"

As per this documentation - https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications?tabs=desktop%2Ccsharp#i-started-getting-a-409-conflict-error-how-do-i-resolve-it
"Make sure that you use unique Microsoft Entra apps for unique Teams apps"

We verified that the Teams application is associated with its own unique Entra/AAD App ID but graph client is still responding back with code "Conflict" and error "Found multiple applications with the same AAD App ID - a Teams Application ID is required to resolve which application is correct."

Can someone please help investigate and resolve this issue?
Please let me know if you need more information or any other details.
Thank you!

Currently using,
.NET 6
Microsoft.Graph client library version 4.35.0 - https://www.nuget.org/packages/Microsoft.Graph/4.35.0

@Meghana-MSFT
Copy link

Thank you for reporting this, we will check this and get back to you.

@makwanam
Copy link
Author

I connected internally with Microsoft Teams dev support and we were able to get this issue resolved.

We thought there was some issue with the Teams app store submission during the manifest update, but that was not the case. The Teams application manifest was successfully updated in the Teams app store via the Teams admin portal. There were no other Teams applications using the same Entra/AAD app ID.

The issue was with the recipient's (who was supposed to receive the activity feed notification) installed applications within Teams.
Apparently, the recipient had side-loaded the Teams tab application manifest for testing and also installed the same Teams tab application from Teams app store. Probably had installed the same Teams tab application multiple times and since they were all pointing to single Entra/AAD app ID, the recipient stopped receiving the activity feed notification for that Teams tab application and started getting the "Conflict" error.

The issue was resolved by deleting/cleaning-up all the existing/older Teams tab applications, which pointed to the same Entra/AAD app ID from the "Manage your apps" section inside the Teams application for the recipient.

Note - this was happening for couple of developers and testers in my Team hence we thought something went wrong during manifest update in Teams app store submission. I think it would have helped if this was mentioned somewhere in the documentation little bit more explicitly like why/how it happens with steps to fix it.

It may not happen to customers/end-users but probably can happen to developers/testers as part of testing the changes in manifest files.

Something along the lines would have helped understand and resolve the issue,
For e.g., for developers/testers, they may side-load the Teams tab application manifests and end up creating duplicate Teams tab application pointing to single Entra/AAD app ID so in that case they would need to delete the older versions of that Teams tab application from Teams by going to "Manage your apps" section and then try sending the activity feed notifications.

Maybe it should be mentioned in here - https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications?tabs=desktop%2Ccsharp#i-started-getting-a-409-conflict-error-how-do-i-resolve-it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants