office365api

“Unable to retrieve user's mysite URL” OneDrive Request

心不动则不痛 提交于 2019-12-14 03:27:32
问题 https://graph.microsoft.com/v1.0/me/drive/root/children My app was working properly until Friday but now I am getting "Unable to retrieve user's mysite URL" error ! What is going on? 回答1: your Office 365 subscription is in locked out state. I expect that it's not only Microsoft Graph calls that don't work, but OneDrive and other Office products can't be used directly either, without an active license. 来源: https://stackoverflow.com/questions/46290822/unable-to-retrieve-users-mysite-url

Office 365 error Resource not found for the segment 'MailFolders'

笑着哭i 提交于 2019-12-14 02:46:04
问题 I am creating functionality in Asp.net webform to display Office 365 mails in one of my page. Currently I am using Microsoft.Office365.Discovery (v1.0.22) and Microsoft.Office365.OutlookServices (v1.0.41.0) nuget package. I need to display Folder wise total mail coundand total unread count but Microsoft.Office365.OutlookServices (v.1.0.41.0) does'n have such functionality. So i downloaded nugetpackage Microsoft.Office365.OutlookServices (v.2.0.1.0) which has properties UnreadItemCount and

Microsoft Graph Subscriptions - Method not Allowed

本秂侑毒 提交于 2019-12-13 08:37:07
问题 I am currently trying to send a request to create a subscription to messages using the Microsoft Graph API, but am getting an error 405 Method Not Allowed. I was wondering if anyone had an idea why this was happening? Here is the request I send: POST https://graph.microsoft.com/beta/subscriptions Content-type: application/json Content-length: 208 { "changeType": "Created", "notificationUrl":"https://webhook.azurewebsites.net/api/send/myNotifyClient", "clientState": "subscription-identifier",

Microsoft Graph API - find message by internetmessageid

这一生的挚爱 提交于 2019-12-13 07:38:25
问题 I need to find conversationId for email exchange between two user - John and Harry. In my scenario: John sends message to Harry. I have email metadata from email that John has sent, e.g. converstationId, internetMessageId, messageId (m$ graph user specific). Now I would like to reply from Harry. Unfortunately the converstionId of Harry is different then John, so I can't use it. What I would like to do is to find email message object in Harry's inbox and use his conversationId. With valid

Not able to use One Drive API for One Drive for Business

醉酒当歌 提交于 2019-12-13 06:00:04
问题 I am trying to provide one drive functionality in my winform application(.Net 3.5). I have successfully implemented this for one drive, but I am having trouble doing it for one drive for business. I have registered my application in azure and I am able to authenticate user, get the access token and tenant URL for logged in user. I am using the instructions provided on this [link]https://dev.onedrive.com/auth/aad_oauth.htm. When I try to access default drive it gives me unauthorized error.

How to create event where current user not organizer using Microsoft Graph API

依然范特西╮ 提交于 2019-12-12 12:29:17
问题 Need to create an event where current user is not the organizer. I tried with the following code that I'm using to create the event: var eventsEndPoint=New Uri("https://graph.microsoft.com/v1.0/users/johndoe@some.com/events"); var postBody="{'Subject':'Testing Organizer - 12','Location':{'DisplayName':'Some place'}," + "'Start': {'DateTime': '2016-07-15T15:00:00.0000000', 'TimeZone':'UTC'}," + "'End': {'DateTime': '2016-07-15T15:30:00.0000000', 'TimeZone':'UTC'},"+ "'Body':{'Content': 'This

Graph API Office 365 usage report - Forbidden

↘锁芯ラ 提交于 2019-12-12 05:28:51
问题 I try to use Office 365 usage reports in Graph API. I would like for example export the EmailActivity report with the request GET /reports/EmailActivity(view=view-value, period=period-value, date=date-value)/content When I try the example https://graph.microsoft.com/beta/reports/EmailActivity(view='Detail',period='D7')/content in Graph Explorer I have the following error Failure - Status Code 403705msLooks like you may not have the permissions for this call. Please modify your permissions. {

Office 365 Mail API: Admin access token to access everyone's emails

让人想犯罪 __ 提交于 2019-12-12 02:59:37
问题 Is it possible for me to access everyone emails within my company using the Office 365 Mail API? I know I can access individuals, but hat requires me to be granted access to their emails and get their access tokens. I would like to be able to have an admin access token and be able to access everyone's emails. Any ideas whether this is possible or not? 回答1: It is possible. We can register a Web application and/or Web API (default, known as a confidential client in OAuth2 parlance) an build a

Access shared files in OneDrive for Business with Office 365 client libraries

假如想象 提交于 2019-12-12 02:40:06
问题 Is there a way to access shared files on OneDrive for Business with the Office 365 client libraries? There are many examples on how to access MyFiles, like this great one on github. The Graph API has access through: https://graph.microsoft.com/v1.0/drives/[DRIVEID]/items/[FOLDERID]/children I have not found a way to access the same with the SharePointClient, only: var filesResult = await client.Files.ExecuteAsync(); 回答1: There is a C# SDK for OneDrive for Business that you can use to pull

Office365 API returns 404 on GetCalendars on some accounts

倾然丶 夕夏残阳落幕 提交于 2019-12-11 19:38:08
问题 I'm using the Office365 as described in the documenation website to get a user's calendars from Office365 account, but getting a 404 error instead: "GET /api/v1.0/Me/Calendars HTTP/1.1" 404 The user has authorized access and I've managed to receive his personal details one request before. The scopes I have authorized are Calendars.Read Calendars.ReadWrite UserProfile.Read . The access token response contains the endpoint URL and it's the one I'm using: 'Calendar_api_endpoint': u'https:/