microsoft-graph

Microsoft Graph: Uploading files to shared with me folder on OneDrive?

不打扰是莪最后的温柔 提交于 2020-01-16 11:11:20
问题 I was able to successfully upload to Shared Documents folder using this approach. But I am looking for a way to upload files to Shared WithMe folder on OneDrive. Is it possible to upload to "/Shared WithMe" folder on OneDrive? If so, which is the right syntax for the PUT (small file) or POST (upload session)? I spent a lot of time to figure this out but no luck. Any help would be greatly appreciated. 回答1: I had success with this approach: PUT /drives/{driveid}/items/{itemid}/content I was

Missing Id property in Identity resource type Microsoft Graph API

雨燕双飞 提交于 2020-01-16 08:37:06
问题 I'm trying to list all the users/emails who have access to a file in a Document Library. That includes getting the transitive members of groups with assigned permissions to the file. I'm able to get the list of permissions for the file using Graph Api (using the permissions endpoint) but some of the groups come without an Id and only show the display name on the property "grantedTo". The documentation for the Identity resource type says that this can happen for some scenarios, but does not

AddAsync(driveItem) does not return

我的梦境 提交于 2020-01-16 08:05:14
问题 The .AddAsync(driveItem) in the following code never returns. Could anyone shed some light on this? IPublicClientApplication publicClientApplication = PublicClientApplicationBuilder .Create(App.ClientId) .Build(); DeviceCodeProvider authProvider = new DeviceCodeProvider( publicClientApplication, new string[] { "Files.ReadWrite.All" }); GraphServiceClient graphClient = new GraphServiceClient(authProvider); DriveItem driveItem = new DriveItem { Name = "Foo", Folder = new Folder { },

Outlook notification subscription using Azure Webhook Domain Not Found

非 Y 不嫁゛ 提交于 2020-01-15 10:24:39
问题 I am working on Creating a push notification for inbox messages to be sent to my azure webhook. I have been following the documentation as a reference. Till now I have been able to create and register my app using the Azure app registration. I got the client_id and client_secret accordingly. Shared below are the postman requests I made to first get the access code and then access_token and refresh_token from the Oauth authorization endpoints - Getting the access code - Endpoint - https:/

Outlook notification subscription using Azure Webhook Domain Not Found

假装没事ソ 提交于 2020-01-15 10:23:05
问题 I am working on Creating a push notification for inbox messages to be sent to my azure webhook. I have been following the documentation as a reference. Till now I have been able to create and register my app using the Azure app registration. I got the client_id and client_secret accordingly. Shared below are the postman requests I made to first get the access code and then access_token and refresh_token from the Oauth authorization endpoints - Getting the access code - Endpoint - https:/

How do I add In-Reply-To and References to 'Send mail'?

不羁岁月 提交于 2020-01-15 09:49:24
问题 My feature was built before /createReply existed and relies on: Set a custom header with Outlook/Office 365 REST to add References and In-Reply-To to an email. This allows the app to send email replies w/o requiring Mail.ReadWrite , which is much more access than we need: https://docs.microsoft.com/en-us/graph/permissions-reference#mail-permissions Read and write access to user mail Allows the app to create, read, update, and delete email in user mailboxes. Does not include permission to send

How do I add In-Reply-To and References to 'Send mail'?

对着背影说爱祢 提交于 2020-01-15 09:49:06
问题 My feature was built before /createReply existed and relies on: Set a custom header with Outlook/Office 365 REST to add References and In-Reply-To to an email. This allows the app to send email replies w/o requiring Mail.ReadWrite , which is much more access than we need: https://docs.microsoft.com/en-us/graph/permissions-reference#mail-permissions Read and write access to user mail Allows the app to create, read, update, and delete email in user mailboxes. Does not include permission to send

Not able to download a file from OneDrive

百般思念 提交于 2020-01-15 09:41:09
问题 According to Microsoft Graph's documentation, the API to download file contents of a file in my OneDrive is: /beta/me/drive/items/01UG2T5D6KU5GACQUPCFE3AMTN47BTTSA6/content however it is returning Failure - Status Code 0, { "isTrusted": true } If I just do /beta/me/drive/items/01UG2T5D6KU5GACQUPCFE3AMTN47BTTSA6 it returns the correct file metadata - so this means the file exists so any clues why Graph cannot fetch the content 回答1: You could use GET /drives/{drive-id}/items/{item-id}/content

Calling Graph API through ViewModel in MVC Web App

亡梦爱人 提交于 2020-01-14 13:50:07
问题 I'm trying to use Graph API to create my own "User Profile" section of the navbar of my web app. To do this I have an AJAX call to a GetUser Action of my UserProfile Controller: $.ajax({ type: "GET", url: "@Url.Action("GetUser", "UserProfile", null)", dataType: "json", success: function (data, status, xhr) { console.log("in AJAX"); $(".img-circle, .user-image").attr("src", data.Picture); $("#user-menu-expanded").text(data.User.DisplayName + " - " + data.User.JobTitle); $("#user-menu-spinner")

How to prevent Flask redirecting to the default port of 5000?

ぃ、小莉子 提交于 2020-01-14 07:01:14
问题 I'm trying to run a Python sample for using Microsoft Graph. It uses Flask libraries for a mini-application that can be run using the Flask's standalone web server. I've modified the application initialization line as APP.run(port=9999) And it starts running successfully at http://localhost:9999/ , but then after a step, it redirects to http://localhost:5000 which is problematic. If I change the initial part of the URL in my browser to http://localhost:9999 and hit ENTER, it continues to