Graph API
34 TopicsMS Graph API: Presence outOfOfficeSettings from beta to 1.0
Hi everybody, in the MS Graph REST API beta the 'Presence' resource type has the property "outOfOfficeSettings" since January 8, 2021. See: https://learn.microsoft.com/en-us/graph/api/resources/presence?view=graph-rest-beta https://developer.microsoft.com/en-us/graph/changelog/?search=outOfOfficeSettings When can we expect this property in theMS Graph REST API 1.0? Regards Gerd208Views0likes1CommentSend Message as User/Bot Using Graph API Based on User's Email Existence in Microsoft Teams Channel
I'm working on a project that involves sending messages to a Microsoft Teams channel using the Microsoft Graph API. I have a specific requirement where: If a user's email exists in the teams channel, the message should be sent as a reply from that user. If the user's email doesn't exist in the channel, the message should be sent from a bot or a service account. I'm using user's token for authentication. Is there any way to achieve this conditional sending of messages using the Microsoft Graph API? Here is a rough outline of what I'm trying to accomplish: Check if the email exists in the teams channel. If it does, send the message as the user. If it doesn't, send the message as a bot or service account. Any guidance or examples on how to implement this would be greatly appreciated. Thank you!1.8KViews0likes4CommentsGraph API: create a PSTN call and invite a PSTN participant
Hello everybody, We are using the MS Graph API within a C# project. After successful creating a PSTN call from our bot like described here https://docs.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=http#example-7-create-peer-to-peer-pstn-call-with-service-hosted-media we run into the next problem: We want to invite another PSTN participant to this existing call like described here: https://docs.microsoft.com/en-us/graph/api/participant-invite?view=graph-rest-1.0&tabs=http#example-4-invite-one-pstn-participant-to-an-existing-group-call. But we receive following event: { "value": [ { "changeType": "Deleted", "resourceUrl": "/communications/calls/981f6100-cb65-42d9-af3c-1390c68cac8b/operations/5fedb136-cff9-446d-a8bc-4166db960e19", "resource": "/app/calls/981f6100-cb65-42d9-af3c-1390c68cac8b/operations/5fedb136-cff9-446d-a8bc-4166db960e19", "resourceData": { "@odata.type": "#microsoft.graph.inviteParticipantsOperation", "participants": [ { "@odata.type": "#microsoft.graph.invitationParticipantInfo", "identity": { "@odata.type": "#microsoft.graph.identitySet", "phone": { "@odata.type": "#microsoft.graph.identity", "id": "+49175********" } } } ], "status": "failed", "resultInfo": { "@odata.type": "#microsoft.graph.resultInfo", "code": 403, "subcode": 9999, "message": "addParticipants failed for participant 4:+49175******. Underlying reason: Call does not contain the metadata required for making this PSTN dial out.. DiagCode: 403#10151" }, "id": "5fedb136-cff9-446d-a8bc-4166db960e19" }, "@odata.type": "#microsoft.graph.commsNotification" } ], "@odata.type": "#microsoft.graph.commsNotifications" } Any idea why we can not invite another PSTN participant to an existing call from the bot to a PSTN number? Thanks. Regards Gerd10KViews2likes39CommentsHow to send dm even if the user has not installed the app in personal scope.
I am trying to build a bot which will have a few message extension to submit data and then I will make a request to my custom backend. I want to save the data and want to send dm to the user. I am planning to expose a route from my botbuilder restify server (built by teams toolkit) to send a dm to the user (from bot's account) because I could not find a way to send a dm without bot framework. The only problem is when I am trying to send a dm I am getting an error saying "Bot is not installed in user's personal scope", which is true because the app is only installed in a team. How can I tackle this problem? Basically I am building a feedback bot for companies so I want to proactively send dm message to all the employees and admins. What are different ways to do this thing. Feel free to ask about any other information if you need, thanks!Solved2.4KViews0likes13CommentsActivity Feed Notifications Fail Due to WebUrl Length Limit
Hello, I'm using thesendActivityNotification Graph API to send Activity Feed Notifications to Teams users. I'm using a custom topic and systemDefault activity type. The webUrl is a deep link to my Teams Personal Tab app. I also include a payload in the deep link, which becomes available in the tab context. I have noticed that the notification fails if the webUrl length exceeds 1024, due to some larger payloads. error: {"code":"BadRequest","message":"UnknownError"} I couldn't find any documented length limit. I have followed these guides - Send activity feed notifications to users in Microsoft Teams - Microsoft Graph | Microsoft Learn https://learn.microsoft.com/en-us/graph/teams-activity-feed-notifications-best-practices Is there a way around this limit, or some other way to include larger payload data when sending the notification?Solved642Views0likes3CommentsAttempting to install the Teams app into a meeting using the Graph API returns a 404:Not Found value
Hi, I'm working on a Java back end application. Its purpose is to: 1. Automatically create an online meeting when certain conditions are met. 2. After creating an online meeting, install a specific Bot app published to the organization in the online meeting chat window. Creating an online meeting was successful with setting the appropriate API permissions for the app. The problem is number 2. Authorization of the app was granted through the Graph API document, and the Bot app to be installed was also published normally by the organization. It was also confirmed that the app was retrieved through the API that retrieves the app list. However, when I try to install using the Graph api, 404:Not Found is returned. What's wrong? For reference, my organization's settings are as follows: 1. Permission to use API of Java back end app: - OnlineMeetings.ReadWrite.All - AppCatalog.ReadWrite.All - Application.ReadWrite.All - OnlineMeetings.ReadWrite.All - TeamsAppInstallation.ReadWriteForChat.All 2. Bot app - Published to organization (permissions and other settings are all allowed) 3. Teams apps Permission policies -Custom apps: Allow all apps The following is the return value when a 404 error occurs. mplementation 'com.microsoft.graph:microsoft-graph:5.+' implementation 'com.azure:azure-identity:1.+' {"email address removed for privacy reasons":"https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/2b0140e9-de04-4097-976d-3b646fc8c082"} 404 : Not Found client-request-id : 2402818b-c253-4e02-840b-7968928cec67 Content-Type : application/json Date : Thu, 17 Aug 2023 08:40:08 GMT request-id : 9d88ee5a-6cc4-46bb-b99d-270893abdaca Strict-Transport-Security : max-age=31536000 Transfer-Encoding : chunked Vary : Accept-Encoding { "error": { "code": "NotFound", "message": "NotFound", "innerError": { "message": "", "code": "AppDefinitionDoesntExist", "innerError": {}, "date": "2023-08-17T08:40:09", "request-id": "9d88ee5a-6cc4-46bb-b99d-270893abdaca", "client-request-id": "2402818b-c253-4e02-840b-7968928cec67" } } } Thanks.1.7KViews0likes3Comments"You'll need a new app to open this about link"
I have a custom app running inside of Microsoft Teams. Everything works as expected when running it inside the Teams web application. Running it inside the Teams desktop application breaks part of my custom app. The issue arises when making a request to any web API. That could be the Microsoft Graph API or a custom one I've build for the custom, client application. Instead of getting data back when making the request, I get a popup stating "You'll need a new app to open this about link". Look for an app in the Microsoft Store. Yes/No. I've tried all kinds of different things. Different providers, SSO vs Azure Auth. Any help would be highly appreciated. Regards, Tolga34KViews0likes5CommentsGraph API user all attributes/properties are null
Hi! We are using the People Picker component in our app and it is making graph API calls that look correct, but in the response the user properties are all null except the ID. Example, searching for "ellen" causes the following request: https://graph.microsoft.com/v1.0/groups/fc598cd2-2af2-4d85-b5fe-c4287965c102/members/microsoft.graph.user?$count=true&$top=6&$filter=startswith(displayName,%27ellen%27)%20or%20startswith(givenName,%27ellen%27)%20or%20startswith(surname,%27ellen%27)%20or%20startswith(mail,%27ellen%27)%20or%20startswith(userPrincipalName,%27ellen%27) The response contains one user. The object ID is correct but displayName (and all other properties) are null. { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users", "@odata.count": 1, "value": [ { "businessPhones": [], "displayName": null, "givenName": null, "jobTitle": null, "mail": null, "mobilePhone": null, "officeLocation": null, "preferredLanguage": null, "surname": null, "userPrincipalName": null, "id": "b4cbe90a-2b84-4804-90d4-aeb341e63adf" } ] } Here are all the permissions I have granted. Thanks for your help! Calendars.ReadWrite Calendars.ReadWrite.Shared Channel.ReadBasic.All email Group.ReadWrite.All GroupMember.Read.All offline_access openid People.Read profile Team.ReadBasic.All TeamsActivity.Send User.ReadSolved7.1KViews0likes6Commentsasked 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.5KViews0likes8CommentsOnline meeting access policy
I'm working on one project which need to send request to get meeting details to graph. I already had created access policy to bot with application id and set the scope as global before. However when I try to get meeting info recently using access token generated from same application id and I got error that "no access policy found for this app". I checked my policies and the previous one still exists. Can I know what issue cause it and how to solve this issue? This is the policy I have created and granted globally Identity : Tag:Temp AppIds : {f66caace-af9f-4777-874e-094fe7862eac} Description : And this is the error info I receive "message":"NoApplicationAccessPolicyfoundforthisapp.",1.3KViews0likes3Comments