Questions tagged [microsoft-graph-api]

Microsoft Graph is the gateway to data and intelligence in Microsoft 365. It provides a unified programmability model that you can use to access the tremendous amount of data in Microsoft 365, Windows 10, and Enterprise Mobility + Security.

Microsoft Graph exposes REST APIs and client libraries to access data on the following Microsoft cloud services:

  • Microsoft 365 services: Delve, Excel, Microsoft Bookings, Microsoft Teams, OneDrive, OneNote, Outlook/Exchange, Planner, SharePoint, Workplace Analytics.
  • Enterprise Mobility and Security services: Advanced Threat Analytics, Advanced Threat Protection, Azure Active Directory, Identity Manager, and Intune.
  • Windows 10 services: activities, devices, notifications, Universal Print (preview).
  • Dynamics 365 Business Central.
13005 questions
10
votes
3 answers

How to retrieve contents of an itemAttachment via the Microsoft Graph API

I'm currently developing a solution which is retrieving e-mails via the Microsoft Graph API. In november 2015 Microsoft stated it is ready for production and I've read in another forum post that if you start now on developing using a Microsoft API,…
Bart Poelmans
  • 103
  • 1
  • 1
  • 7
10
votes
1 answer

Impersonation with Microsoft Graph

Is there a way to impersonate a user in office 365 using the new Microsoft Graph API? I am currently using EWS API to impersonate office 365 users to add calendar events.
Thivy Ruthra
  • 131
  • 2
  • 6
9
votes
1 answer

Code: BadRequest Message: /me request is only valid with delegated authentication flow

I am trying to upload file on onedrive by using microsoft graph onedrive api. I am using the method for authentication Client credentials…
Fahim Akhtar
  • 359
  • 1
  • 4
  • 13
9
votes
2 answers

MS Graph Api: Timeout when converting docx to pdf

I get a Microsoft.Graph.ServiceExceptionwith Code: timeout Message: The request timed out. in Microsoft.Graph.Core with the following stack trace: at Microsoft.Graph.HttpProvider.SendRequestAsync(HttpRequestMessage request, HttpCompletionOption…
Marius
  • 1,529
  • 6
  • 21
9
votes
1 answer

Graph API calls to OnPremise Exchange only works in Playground

Our setup is an on-premise Exchange Server which is accessible over the graph api. https://learn.microsoft.com/en-us/graph/hybrid-rest-support We run in the issue, that our token is only "partial" working. And a token created by "Graph-Playground"…
9
votes
5 answers

Microsoft Graph API - "code": "UnknownError"

Does anyone know what to do when you get "UnknownError" from Graph…
Erick B
  • 478
  • 5
  • 11
9
votes
4 answers

How to open Android Outlook application from an external one

I'm currently developing an Android application in order to display home screen widgets. Those ones are related to Microsoft Outlook (Events + Messages) in order to show incoming events and unread new messages in a kind of dynamic tiles. The Msal…
9
votes
1 answer

Microsoft Graph API Batch limit

This question is about two questions about JSON Batching I found out the batch limit is 15 instead of the mentioned 20, why is the limit not mentioned on the page of JSON Batching is a question to me. If I combine 15 requests they all succeed, no…
Stephan
  • 2,356
  • 16
  • 38
9
votes
1 answer

How do I specify multiple "Prefer" headers?

I'm currently building a Ruby SDK for the Graph API. I'm working with delta queries on the message resource endpoints, specifically list-messages. I need to specify two preferences utilizing the Prefer header(s): allow unsafe HTML -…
wulymammoth
  • 8,121
  • 4
  • 19
  • 19
9
votes
1 answer

AccessDenied, Either scp or roles claim need to be present in the token

Using this URI I am trying to generate access tokens https://login.microsoftonline.com//oauth2/v2.0/token and the access tokens were successfully generated. And I am passing client_id,client_secret,grant_type and scope. When I tried to…
Divyashree R
  • 81
  • 1
  • 2
  • 9
9
votes
1 answer

Microsoft Graph The token contains no permissions, or permissions cannot be understood

I am working with Microsoft Graph and have created an app that reads mail from a specific user. However, after getting an access token and trying to read the mailfolders, I receive a 401 Unauthorized answer. The detail message is: The token…
Roeland
  • 820
  • 1
  • 9
  • 33
9
votes
1 answer

Should I make 3rd party API calls in backend or frontend?

I have an API and that API needs some data from the Microsft Graph API. I was thinking of implementing an endpoint in my API to refresh the token and use that token to make calls from the frontend. I don't know if that's optimal or safe, hence my…
9
votes
0 answers

Microsoft Graph API - Get Message - Recipient alias

We want to have an application that uses an API (Graph Office365 REST) to go through emails messages and lists the recipient email aliases. Our email user has couple of aliases through which we can receive email into the same inbox. for example -…
MB1
  • 91
  • 2
9
votes
1 answer

Microsoft Graph filter for onPremisesExtensionAttributes

I have a Microsoft Graph user with the following property: "onPremisesExtensionAttributes": { "extensionAttribute1": "attr1", "extensionAttribute2": null, "extensionAttribute3": null, …
9
votes
1 answer

App needs permission to access resources in your organisation that only an admin can grant

We have created a converged application for a public community(AD & live users can login) using Microsoft Graph and the scopes openid, email, profile and user.readBasic.all. Every thing works fine for live users but some of AD users are not able to…
Venuu Munnuruu
  • 285
  • 1
  • 6
  • 17