microsoft-graph-api

Microsoft Graph API beta OnlineMeetings Error - Server error: User lookup by user id failed in AAD

雨燕双飞 提交于 2021-02-11 15:20:57
问题 I am working on a slack app that calls Microsoft Graph API in order to generate a Microsoft Teams meeting link. I am able to generate an access token, however I am getting the error: { "error": { "code": "InternalServerError", "message": "Status: NotFound (404)\r\nOperationId: 53deefa0-754d-451d-8d0b-34c94ecf1c8e\r\nClientCorrelationId: 4794ce56-5774-40c5-a272-b6e4cb1242ab\r\nServer error: User lookup by user id failed in AAD.\r\nClient exception: Processing of the HTTP request resulted in an

Microsoft graph authorization code flow - get authorization code from web app programmatically

不羁的心 提交于 2021-02-11 14:59:47
问题 I have created web app to CreateOrGet, Delete, Update onlinemeeting using Microsoft Graph API in C#. To get authorization code as per link Get access on behalf of a user. It returns a webview as HttpClient calls api for AuthCodeGeneration and returns the response, which contains Authcode in browser. I have to manually copy it to execute CreateOrGet, Delete, Update onlinemeeting using Microsoft Graph API. Is there any way to do this through code in C#? 回答1: You don't need to handle the "code"

How to upgrade from OneDrive SDK to Microsoft Graph SDK and keep the old AppFolder

倾然丶 夕夏残阳落幕 提交于 2021-02-11 14:59:27
问题 My UWP app uses app folder ( Files.ReadWrite.AppFolder ) for storing app data on OneDrive. I upgraded the app to use Microsoft Graph SDK instead of the old OneDrive SDK (version 1.x). I didn't get the authentication to work using the old client id registered in https://apps.dev.microsoft.com, so I registered my app in https://aad.portal.azure.com/ and I use MSAL.NET for authentication. The problem is that the upgraded app creates a new app folder on OneDrive ( My App 1 ) instead of using the

Microsoft team link is not appearing for alternate update calendar events

折月煮酒 提交于 2021-02-11 14:31:22
问题 I am using Microsoft graph API to create and update calendar events. While creating an event with Teams selected, a calendar event will be created and an email got sent with team link but on updating the same event, team link is missing in email. Like that for alternate update events team link is missing Can anyone help? 回答1: To keep the meeting link, do not update the body in the request, and it should work. The issue is happening because of a fix / feature that has been implemented on

endsWith filter not supported?

孤者浪人 提交于 2021-02-11 14:18:12
问题 following: https://graph.microsoft.com/v1.0/users?$filter=startsWith(displayName,'P') works like a charm, whereas https://graph.microsoft.com/v1.0/users?$filter=endsWith(displayName,'z') throws a 400 error Any idea why endsWith is not supported ? 回答1: Comment moved to answer: This is a question that has been asked. Although UserVoice has voted a lot, it still does not support filters such as "endswith". see:here. 回答2: Unfortunately this is still not working for displayName. But for mail and

One of the provided arguments is not acceptable creating folder using Microsoft Graph API

久未见 提交于 2021-02-11 13:48:38
问题 I am using Microsoft Graph Library for PHP (microsoftgraph/msgraph-sdk-php) to save documents in Onedrive for Business. I am having issues to create items (folders or upload files) using Microsoft Graph API, for instance, when I am creating folders I am getting: "Client error: `POST https://graph.microsoft.com/v1.0/drives/MYDRIVEID/items/MYPARENTFOLDERID/children` resulted in a `400 Bad Request` response: { "error": { "code": "invalidRequest", "message": "One of the provided arguments is not

Can't get 'Inbox' folder via Microsoft Graph api

南楼画角 提交于 2021-02-11 13:47:57
问题 I can't get 'Inbox' mailFolder resource via Microsoft Graph api. I tried to use /me/mailFolders to get all of mailFolders under the root folder, but the 'Inbox' didn't show in api response. Besides, I also tried to send api with the well-known folder names, but the server responded ErrorItemNotFound . However, there are many sub-folders under my 'Inbox' mail folder, and I can see them via Office365 website. Here are the detail request and response. Request: GET /users/5df7dac4-5c93-4bb6-8dc9

Can't get 'Inbox' folder via Microsoft Graph api

和自甴很熟 提交于 2021-02-11 13:45:03
问题 I can't get 'Inbox' mailFolder resource via Microsoft Graph api. I tried to use /me/mailFolders to get all of mailFolders under the root folder, but the 'Inbox' didn't show in api response. Besides, I also tried to send api with the well-known folder names, but the server responded ErrorItemNotFound . However, there are many sub-folders under my 'Inbox' mail folder, and I can see them via Office365 website. Here are the detail request and response. Request: GET /users/5df7dac4-5c93-4bb6-8dc9

Update User info using Graph API

旧街凉风 提交于 2021-02-11 13:40:57
问题 This is a question about updating a signed-in User's profile info using Graph API I am using the tutorial at (https://docs.microsoft.com/en-us/graph/tutorials/javascript). It lets you: sign in get signed in user info get calendar events create calendar events It works perfectly and looks great. However, I'm having a hard time updating the user info. I stripped the sample code down to just getting the user info because I'm not dealing with calendar events. Getting an access token, creating a

Update User info using Graph API

丶灬走出姿态 提交于 2021-02-11 13:40:41
问题 This is a question about updating a signed-in User's profile info using Graph API I am using the tutorial at (https://docs.microsoft.com/en-us/graph/tutorials/javascript). It lets you: sign in get signed in user info get calendar events create calendar events It works perfectly and looks great. However, I'm having a hard time updating the user info. I stripped the sample code down to just getting the user info because I'm not dealing with calendar events. Getting an access token, creating a