Microsoft Graph
12 TopicsMicrosoft Graph - List apps in chat - 404 UnknownError
In Microsoft Graph, I would like to list all Teams apps associated to an onlineMeeting (to its chat actually). According to List apps in chat - Microsoft Graph v1.0 | Microsoft Learn, this is supported with the following request : GET /chats/{chat-id}/installedApps There is a note saying that if the chat is associated with an onlineMeeting instance, then, effectively, the teamsApps installed in the meeting will be listed. That should work. However, I'm getting a 404 with UnknownError as the error.code on my end. The right permission (TeamsAppInstallation.ReadWriteForChat) is granted (Chat.ReadWrite is granted as well). Testing from Graph Explorer from now. Please note that the following is working to get chat messages with the same chat-id : GET /chats/{chat-id}/messages or the following to get chat members : GET /chats/{chat-id}/members I've tried the endpoint POST /chats/{chat-id}/installedApps to add an app to the chat as well but I'm getting the same kind of 404 (documented on Add app to chat - Microsoft Graph v1.0 | Microsoft Learn). Any advice? Thanks62Views0likes3CommentsIssues with Bot-to-Bot Calls and Call Status Retrieval in Microsoft Teams - Issue 2
I am currently developing a bot-to-bot VOIP call feature using Microsoft Teams and have encountered critical issues that I need assistance with: Please suggest We have registered 2 bots in the same tenant with separate APP Registrations, As per the documentation sending a body to initiate VOIP calls between the bots however it is not working and getting the below error. When trying to make bot-to-bot calls, I consistently receive a "Request authorization tenant mismatch" error, despite both bots being registered under the same tenant. Steps to Reproduce: Register two bots in the same Azure tenant. Use the Microsoft Graph API to initiate a call from one bot to the other. Observe the error response. https://graph.microsoft.com/v1.0/communications/calls?Content-Type=application/json { "@odata.type": "#microsoft.graph.call", "callbackUri": "https://7084-&&&&&-234.ngrok-free.app/callback", "source": { "@odata.type": "#microsoft.graph.participantInfo", "identity": { "@odata.type": "#microsoft.graph.identitySet", "application": { "@odata.type": "#microsoft.graph.identity", "displayName": "VOIP Call Bot", "id": "BOT 1 APP ID" } }, "region": null, "languageId": null }, "targets": [ { "@odata.type": "#microsoft.graph.invitationParticipantInfo", "identity": { "@odata.type": "#microsoft.graph.identitySet", "application": { "@odata.type": "#microsoft.graph.identity", "displayName": "Calling_Teams_Bot", "id": "APP ID", "tenantId": "BOT 1 APP Tenant ID" } } } ], "requestedModalities": [ "audio" ], "tenantId": "BOT 1 APP Tenant ID", "mediaConfig": { "@odata.type": "#microsoft.graph.serviceHostedMediaConfig" } } Error Message: { "error": { "code": "7505", "message": "Request authorization tenant mismatch.", "innerError": { "date": "2024-10-23T18:28:10", "request-id": "66dd5026-763a-46bc-9a94-79cf0630ed33", "client-request-id": "66dd5026-763a-46bc-9a94-79cf0630ed33" } } }428Views0likes5CommentsHow to get access token for Graph API in Teams bot-based message extension?
I'm developing a Teams bot-based message extension application using the Teams Toolkit in TypeScript. I need to retrieve all the replies for a message in the current channel. According to the documentation, I need to use the Graph API to get the replies. However, to use the Graph API, I need an access token. My questions are: How can I implement OAuth to get the token in a bot-based message extension? Are there any specific permissions or configurations needed in the Azure portal to enable this? Is there an alternative way to get the access token or retrieve the replies without using the Graph API?2KViews0likes5CommentsSend messages/notifications to a user on MS Teams
Hello, I am currently integrating MS Teams into our SaaS Product. The goal of the integration is to send notifications (messages) from our service to the appropriate user(s) in MS Teams. Eventually, we want to make the integration interactive, but step one is just messages. I have already integrated with Slack and I am working on MS Teams. With Slack, I was able to request a "bot token" when the user authenticates through the OAuth2 flow (not an AI Bot). I realize MS Teams most likely won't be that easy. (But if it is, please let me know). MS Teams is a part of the entire MS ecosystem while Slack is just Slack. So a simple "auth as a bot" may not exist. This is my flow. I would appreciate some advice on if this flow seems correct. If not, what's the correct flow. If so, what am I missing? Step 1 OAuth2 with permissions { "scopes": [ "TeamsAppInstallation.ReadWriteSelfForTeam", "TeamsAppInstallation.ReadWriteAndConsentSelfForTeam", "email", "offline_access", "openid", "profile" ] } Step 2 Get list of user's teams (so they can choose the team) - GET https://graph.microsoft.com/v1.0/me/joinedTeams Step 3 Get list of Installed Apps (to check if we're already installed) - GET https://graph.microsoft.com/v1.0/teams/[teamId]/installedApps Step 4 Create (install) my app to the team - POST https://graph.microsoft.com/v1.0/teams/[teamId]/installedApps {"teamsApp[at]odata.bind":"https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/ea99b1d4-8e99-4f29-b02a-a42ef14dd444"} - 404 Response { "error": { "code": "NotFound", "message": "No Teams App found for id 'teamsAppId'.", "innerError": { "date": "2024-08-06T16:35:17", "request-id": "b1a2321f-ba78-4600-8677-bcd89d211517", "client-request-id": "b1a2321f-ba78-4600-8677-bcd89d211517" } } } I can't seem to figure out what id is used to install the Teams App. Following Steps Questions Once the TeamsApp is installed, do I continue to use the user's access token to send messages? Or do I use the ClientId/Secret for client auth and send messages as the app I created in "App Registration"? The App has been linked to the Teams App in the "webApplicationInfo" section of the teams app manifest. Is that enough? What graph endpoints should I use? Notable Items I've created an "App Registration" object on portal.azure.com. That's where I'm getting the ClientId and ClientSecret for the OAuth2 flow. As well as setting OAuth2 permissions. I've created an "App" object on dev.teams.microsoft.com. This is where I'm getting the teamsAppId. This app has been published to my org. It has been approved by an admin. I created an "Azure Bot", but I don't think I need this. I tried to create a bot at dev.botframework.com, but the create flow sends me back to portal.azure.com to select a service to integration. Which I don't want to do. Regarding Tutorials I've gone through several tutorials, but I am not finding what I need. I've also had trouble finding tutorials that explain every step of how to get things setup up. Most tutorials have VSCode lifecycle tasks that hide what I think I need. Again, any help would be appreciated. Thank you in advance.835Views1like3Comments403 Forbidden on transcript content request
Hi. I have two apps with the same Microsoft Graph API Application permissions. In addition to those permissions, apps have the same Resource Specific permissions: - OnlineMeetingTranscript.Read.Chat - ChannelMeetingTranscript.Read.Group - OnlineMeetingParticipant.Read.Chat - OnlineMeeting.ReadBasic.Chat - Calls.JoinGroupCalls.Chat One app successfully gets responses from `/users/<user_id>/onlineMeetings/<onlineMeeting_id>/transcripts/<transcript_id>/content` Microsoft Graph API endpoint, but second app receives 403 error. What could I forget to do with the second app?688Views0likes1Commentasked for scope 'OnlineMeetings.ReadWrite.All' that doesn't exist on the resource
I'm trying to get Auth. code for OnlineMeetingsReadWrite.All scope. But it returns an error said: "The application 'HSR Teams Integration' asked for scope 'OnlineMeetings.ReadWrite.All' that doesn't exist on the resource '00000003-0000-0000-c000-000000000000'. Contact the app vendor.". I checked everthing triple times and I can't still figure out where is the problem. Here is my request: https://i.hizliresim.com/m3r21ek.png Here is my api permissions: https://i.hizliresim.com/gsa73fe.png We also have application access policy for this application. Why I'm getting this error ? I checked that client id is correctSolved3.6KViews0likes8CommentsFirst Day of Week
How can I find a user's "first day of week" setting (e.g. Sunday, Monday)? This setting is not available in the https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/access-teams-context, and I can't find a Microsoft Graph command to retrieve it.Solved1.6KViews0likes3Comments[MS-Graph-API] call: subscribeToTone - timeout
is that possible to set timeout to the DTMF (dual-tone multi-frequency signaling) subscription and get notified when f the time finishes? https://docs.microsoft.com/en-us/graph/api/call-subscribetotone?view=graph-rest-1.0&tabs=csharp740Views0likes0Comments"Teams" enabled for "GroupId", but same does not reflect in "Microsoft Teams" app.
"Teams" enabled in "Group", but same does not reflect in "Microsoft Teams" app. We created "channels" and "tabs" for teams (programmatically) using Microsoft graph API, and it does show all channels and tabs got created (when checked in Microsoft graph explorer), but same not reflecting in "Microsoft Teams".737Views0likes0Comments