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
11
votes
3 answers

Upload file to SharePoint drive using Microsoft Graph

We are trying to implement integration between a web application and SharePoint Online using Microsoft Graph rest API. Specifically, we need to upload a file to a specific SharePoint site's document library (drive), different than current user…
danfer
  • 371
  • 1
  • 3
  • 10
11
votes
3 answers

Getting Microsoft Graph Drive items by path using the .NET SDK

As it is documented, using the Microsoft Graph REST API you can (among other options) get an item by Id or Path. This works fine, as expected: GET /me/drive/items/{item-id}/children GET /me/drive/root:/{item-path}:/children Using the .NET SDK, I…
horacioj
  • 687
  • 1
  • 8
  • 25
10
votes
1 answer

Microsoft Graph - Users API deltatoken

We use Microsoft Graph Users API to track changes of users in Azure AD. https://learn.microsoft.com/en-us/graph/api/user-delta?view=graph-rest-1.0&tabs=http In API response, we acquire @data.nextlink, to fetch next set of users. This @data.nextlink…
Hari Prasandh
  • 467
  • 2
  • 13
10
votes
3 answers

How can I update Presence/Status/Availability in MS Teams via an API call?

I am aware of the beta Graph Presence API. However, this currently only allows retrieving Presence data. I would like to be able to change a Teams user's status availability using an api call. The most recent information that I could find is…
dda
  • 309
  • 1
  • 3
  • 15
10
votes
2 answers

Graph API fails for Archive mailboxes

I've been using the Microsoft Graph API to access Exchange Online (Office365) In-Place Archives. It's basically an authenticated GET HTTPS request against…
user124114
  • 8,372
  • 11
  • 41
  • 63
10
votes
4 answers

How to access Email of an User on B2C using Graph API

I want to know the email address of a user to send an email. On my application, people can sign up with social accounts (google/facebook/Microsoft) or local accounts. When creating a local account we use the email. I found this info about how email…
10
votes
1 answer

Download and upload DriveItem from shared OneDrive Folder with MS Graph SDK

I'm currently trying to implement several tasks that involve listing, uploading and downloading files from a shared OneDrive folder. This folder is accesible via the logged in users OneDrive (visible in his root folder). The listing part works…
Romano Zumbé
  • 7,893
  • 4
  • 33
  • 55
10
votes
2 answers

How to create an object of IAuthenticationProvider of GraphServiceClient with fixed inputs

I am trying to connect to Microsoft Share Point from my Java application. The documentation for Microsoft Graph SDK for Java is not so clear. I am trying to initiate the Graph client, while providing the credentials needed via a custom GUI or…
10
votes
2 answers

Microsoft Graph API - SendMail http 400 - API url from documentation not working

My application sends email using Microsoft Graph. We followed the documentation, this was working as expected for almost a year: https://graph.microsoft.com/v1.0/users/me/microsoft.graph.sendmail Since 3/8/2019, the same code sendmail API in PROD…
10
votes
2 answers

How to mock Microsoft Graph API SDK Client?

I have used Microsoft Graph SDK in my project to call graph API, for this I need to use GraphServiceClient. To use GraphServiceClient, i have to add some helper classes, in which SDKHelper is a static class which has GetAuthenticatedClient()…
vishwajeetrkale
  • 461
  • 2
  • 7
  • 16
10
votes
4 answers

Firebase custom Auth with Microsoft Azure / Graph

I'm building an enterprise app using Microsoft Graph to sign in. After a successful signing i want to use the token to be sent to authenticate to Firebase Auth (so i can secure the access to the database). The token recieved after a successful sign…
10
votes
1 answer

Microsoft Graph API: Get all rules for mail account

I have and admin account in Office365 with an app that's been given full access to anything exchange related. I am writing an app that has a use case where I would need to get all the Rules created in a user's mailbox. This would include things like…
Keshi
  • 906
  • 10
  • 23
10
votes
1 answer

Microsoft Graph: List all users and their groups in one request

I would like to list all users. For each user, I need to display the roles and groups specific to that user. I tried: https://graph.microsoft.com/v1.0/users?$expand=memberOf But it gives exactly the same result…
Michael
  • 1,557
  • 2
  • 18
  • 38
10
votes
2 answers

How to get Azure tenant name from graph.microsoft.com?

I need to discover user's tenant name, since the service endpoint, resourceId that I'll be using an Azure service that requires me to specify the tenant name: service endpoint: https://[tenantnamme].api.crm.dynamics.com/... resource Id: …
10
votes
2 answers

Difference between Office 365 REST Api and Microsoft Graph

I would like to know difference between Office 365 REST API and Microsoft Graph, since we could find similar functionality for both of these. https://msdn.microsoft.com/en-us/office/office365/howto/rest-api-overview Following is the text from above…