microsoft-graph

Microsoft Graph API BadRequest Current authenticated context is not valid

蹲街弑〆低调 提交于 2020-01-01 09:54:14
问题 I am trying to develop a simple background app to connect to my onedrive account (work) and regularly download some files. I followed this tutorial https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols-oauth-client-creds I have registered the app here https://apps.dev.microsoft.com/portal/register-app I have written down the client_id and client_secret To get an access token I make a POST request to https://login.microsoftonline.com/common/oauth2/v2.0

Does Microsoft Graph API /search() work when using app-only token

穿精又带淫゛_ 提交于 2019-12-31 05:15:11
问题 I am trying to use the graph API (v1.0) to search for files and folders within our team's sharepoint/onedrive folders but when using an app-only token I consistently get no results for any /search(...) request I try. I have an registered and application with https://apps.dev.microsoft.com and have requested and granted consent for the permissions stated in the API Documentation; User.ReadWrite.All , Group.Read.All , Sites.Read.All , Sites.ReadWrite.All , Group.ReadWrite.All , Sites.Manage.All

“Resource not found for the segment” using Graph subscription beta

百般思念 提交于 2019-12-31 03:57:28
问题 Im using the Microsoft Graph to get calendar event with application permission. It works perfectly. Now Im trying to set up a subscription to listen to event changes however the normal v1.0 do not suport this. However beta, at least in the description, say it works. From the page: https://graph.microsoft.io/en-us/docs/api-reference/beta/api/subscription_post_subscriptions "Note: the /beta endpoint allows Application permissions as a preview feature for most resources." So I tried this with

Insufficient privileges for password reset

杀马特。学长 韩版系。学妹 提交于 2019-12-31 03:14:11
问题 My goal is to allow users to change and reset their own passwords within my application. We do not want users to be redirected to consent pages. I've followed the instructions defined here: But I'm running into the following error: { "error": { "code": "Authorization_RequestDenied", "message": "Insufficient privileges to complete the operation.", "innerError": { "request-id": "19c43c69-f553-470e-9432-617395f5f8f5", "date": "2017-06-01T17:24:11" } } } My patch request: PATCH /v1.0/users

Get notification from Microsoft Graph when deleting event occurrence

寵の児 提交于 2019-12-31 03:06:11
问题 I have subscribed to events ( https://outlook.office.com/api/v2.0/me/events ) push notification. When I delete one event of recurrence master event, I receive UPDATED notification with id of master event and not specific occurrence event id. How can I know which event was deleted without comparison with all previous recurrence events? And not receive only master id event. 回答1: When you "delete" and occurrence, you're technically not deleting an entity. You're actual adding an exception to the

MS Graph Excel list charts in worksheet not working

梦想的初衷 提交于 2019-12-30 07:43:28
问题 I am using this MS graph call to list the charts in an excel worksheet. GET /workbook/worksheets/{id|name}/charts Graph returns this error: { "error": { "code": "GeneralException", "message": "There was an internal error while processing the request.", "innerError": { "request-id": "ea42895c-1b98-4d34-baf3-6c544f2ff81c", "date": "2018-03-29T04:54:50" } } } I tried different worksheets and chart types with the same result. It was working until a couple of days ago. Can anybody reproduce this

Microsoft Graph API for SharePoint in Python: Microsoft.SharePoint.Client.UnknownError [closed]

拈花ヽ惹草 提交于 2019-12-30 07:27:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . We are sending out the following query: {u'parentReference': {u'path': u'/drive/root:/Main'}, u'name': u'BusinessDailyTemplate.xlsb'} To the endpoint […path to the file…]:/copy As follows requests.post('[…path to the file…]BusinessDailyTemplate.xlsb:/copy', json={'parentReference': {'path': '/drive/root:/Main'},

Trying to search Sharepoint files using Microsoft Graph api

穿精又带淫゛_ 提交于 2019-12-30 05:18:30
问题 We are using the Microsoft Graph API (new, Office365 unified API renamed to this recently). We have an OAUTH login, with the graph.microsoft.com resource used to generate a token. It works fine to get other subresources such as /me . But when using the URL in Microsoft Graph's documentation that talks about searching drive (and SharePoint?) we cannot find a way to make any sample URL work. It doesn't work when a drive is available for the user nor when SharePoint. So first question, why does

Graph API - get events returning 500 internal server error

十年热恋 提交于 2019-12-28 04:30:05
问题 Trying to use the Graph API (through https://developer.microsoft.com/en-us/graph/graph-explorer/) to return events from a shared calendar using the following endpoint: https://graph.microsoft.com/v1.0/users/<user>/calendar/events When <user> is replaced with my email, the events are returned as expected, however if it is replaced with a colleague (who has shared the calendar with me), I get the following 500 response: { "error": { "code": "ErrorInternalServerTransientError", "message": "An

Trigger an external API call in Outlook replying to an email coming from a specific email-id

二次信任 提交于 2019-12-25 18:46:28
问题 I am trying to trigger an external API when i reply to an email coming from a specific sender. To describe the use case , we have an internal platform where people ask specific questions and experts answer them similar to stack overflow. We want to enable a outlook feature for experts answering questions which would enable the expert to reply to an email notification (coming from the platform) and when he hits send the action would be to call the POST end point for the platform which create a