13,517 questions with Microsoft Graph-related tags

Sort by: Updated
1 answer

How to check file attachment status using MS Graph Api Send mail Java-SDK V5

Hello Team, We would like to check if file has been attached to mail or not using below code-MS Graph Api Java-Client credential flow. attachmentsList1.add(fat); AttachmentCollectionResponse attachmentCollectionResponse = new…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-25T15:33:34.86+00:00
B Jayachithra 11 Reputation points
answered 2025-04-27T08:02:57.6333333+00:00
SrideviM 2,455 Reputation points Microsoft External Staff
1 answer

Html formatting gets stripped off when using chatMessage for Teams graph

I am trying to send a HTML formatted message on a OneOnOne chat using Teams graph in Python. So far it is working with plaintext but if I try to use HTML tags it does not format correctly. Here is the excerpt of the code: chat_request_body =…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-25T09:28:19.5166667+00:00
Rajen Jani 40 Reputation points
answered 2025-04-27T04:08:39.6566667+00:00
SrideviM 2,455 Reputation points Microsoft External Staff
1 answer

Filter data from Microsoft graph

I have all my in a list public partial class CalendarPageViewModel(GraphServiceClient graphClient) : ObservableObject { public ObservableCollection<Event> CalendarEvents { get; set; } = []; public async Task FetchCalendarEventsAsync() { …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-26T16:19:58.76+00:00
Eduardo Gomez 3,611 Reputation points
answered 2025-04-27T02:42:30.16+00:00
Michael Taylor 58,526 Reputation points
4 answers One of the answers was accepted by the question author.

Invitations are blocked for this directory due to suspicious activity

https://learn.microsoft.com/en-gb/answers/questions/2088931/invitations-are-blocked-for-this-directory-due-to I tried adding around 200 users in bulk last week but the operation failed mid-way with the "Request was unsuccessful. Details: Invitations…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,277 questions
asked 2024-11-13T05:54:33.4666667+00:00
Super Boss 25 Reputation points
edited an answer 2025-04-26T16:28:57.4866667+00:00
Sơn Hoàng (tvn) 0 Reputation points
1 answer One of the answers was accepted by the question author.

Microsoft graph api exceptions

I am using the graph api, to get data from a calendar public partial class CalendarPageViewModel(GraphServiceClient graphClient) : ObservableObject { public ObservableCollection<CalendarEvents> CalendarEvents { get; set; } = []; public…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-24T20:02:21.1433333+00:00
Eduardo Gomez 3,611 Reputation points
commented 2025-04-26T16:20:16+00:00
Eduardo Gomez 3,611 Reputation points
2 answers One of the answers was accepted by the question author.

HOW TO EXTRACT HTTP STATUS FROM GRAPH API

When a Graph API encounters an error, how can I extract the HTTP status code in C#?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-14T13:10:52.4433333+00:00
Giorgio Sfiligoi 391 Reputation points
accepted 2025-04-26T09:40:07.88+00:00
Giorgio Sfiligoi 391 Reputation points
0 answers

Upload Metadata file in SAML using Graph API for automation

Hi Everyone, I have setup a SAML enabled Service Principal and I want to automate the Metadata uploading part using Graph API or if there are any other options I am all ears. Thank You in Advance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-10T16:42:01.2533333+00:00
Arpit Kumar 40 Reputation points
edited a comment 2025-04-26T05:59:17.44+00:00
Arpit Kumar 0 Reputation points
0 answers

creating a subscription for a user's mailbox using a delegated access token is unauthorized

I have a new web app set up with the following permissions: Using Microsoft Entra ID, I'm able to authenticate my microsoft account with the app, the app should be suporting all microsoft users: After authenticating the user, I have a callback…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-26T04:10:12.9233333+00:00
Phong 0 Reputation points
edited the question 2025-04-26T04:11:27.0766667+00:00
Phong 0 Reputation points
1 answer

Case creation and Case listing gives "An unexpected error occurred."

Microsoft.Graph.Beta.Models.ODataErrors.ODataError HResult=0x80131500 Message=An unexpected error occurred. Source=Microsoft.Kiota.Http.HttpClientLibrary StackTrace: at…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-14T10:44:55.6266667+00:00
Shubham Jethava 0 Reputation points
commented 2025-04-26T01:35:22.3333333+00:00
SrideviM 2,455 Reputation points Microsoft External Staff
1 answer

How can I add table rows to an excel file in a Sharepoint Document Library?

I know, that it is possible to add one or multiple rows by Graph API to a workbook stored on users OneDrive. But i would like to create rows in an excel file stored on Sharepoint in an Document Library. Is that possible? How should the url looks like? I…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-22T14:24:32.7566667+00:00
Janice Lehmann 20 Reputation points
commented 2025-04-26T01:34:32.32+00:00
SrideviM 2,455 Reputation points Microsoft External Staff
1 answer

Create TrustFrameworkKeySet is broken since recently

Hello, We've been using the "Create TrustFrameworkKeySet" Graph API endpoint for a couple of years now, but since recently the functionality does not work anymore. The endpoint is:…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-07T11:40:24.67+00:00
Bas C 0 Reputation points
commented 2025-04-26T01:32:35.6533333+00:00
SrideviM 2,455 Reputation points Microsoft External Staff
2 answers

I'm trying to use the Get-MgUserDrive command in PowerShell with the 'me' alias, full email address, and explicit user ID, but keep getting a 'User not found' error.

Here is a summary of the steps I took to attempt to execute the Get-MgUserDrive -UserId 'me' command, and why I encountered the persistent "User not found" error: Azure AD application authentication and configuration: I verified that Im…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2024-06-01T14:16:53.5333333+00:00
Mo7Z 0 Reputation points
commented 2025-04-25T20:31:27.8366667+00:00
Martin 0 Reputation points
1 answer One of the answers was accepted by the question author.

query puzzle

Learning query about pulling in a device list with fields but cant find any documentation to save my life on how to filter it by OS type to equal IOS. Can anyone show a filter statement? ty { "reportName": "DeviceCompliance", …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-24T19:48:33.1+00:00
Paul Morris 20 Reputation points
accepted 2025-04-25T19:19:56.45+00:00
Paul Morris 20 Reputation points
0 answers

Alert "User requested to release a quarantined message" doesn't have sufficient metadata for analyst to use

When the alert "User requested to release a quarantined message" is generated, the payload data Microsoft Graph supplies for alert_v2 and also in the Alerts UI in Defender do not have enough data to identify the email item that is being…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-25T17:54:12.0333333+00:00
LindsayOlson-7017 0 Reputation points
1 answer

Graph API returns wrong size for email attachments

Hi, I'm using the Graph API to load metadata for message attachments via the endpoint /me/messages/{id}/attachments/{id}. However, the size property returned doesn't match the actual size of the file when downloaded using the raw data route…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-11T07:29:23.49+00:00
Alan Dzday 5 Reputation points
commented 2025-04-25T16:41:06.5433333+00:00
Adi Roiban 0 Reputation points
1 answer

Microsoft Graph API returns "generalException" when accessing user drive via delegated access

Hi, I'm trying to download files from a specific user's OneDrive using the Microsoft Graph API via a Jenkins pipeline. I’m using the client credentials flow (delegated access), and I'm able to successfully retrieve the access token from Azure…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-25T07:19:24.7566667+00:00
Bonow 0 Reputation points
answered 2025-04-25T15:31:16.0433333+00:00
Vasil Michev 117.1K Reputation points MVP
0 answers

Clarification on App-only Access to Subject and Location Fields in Calendar Events

Hello Microsoft Graph Team, I’m working on integrating calendar data using Microsoft Graph and would like clarification regarding the visibility of event subject and location when using application (app-only) permissions. Specifically, under what…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-23T12:52:43.3966667+00:00
Dhawan.Amrita 0 Reputation points
commented 2025-04-25T14:46:39.1+00:00
Dhawan.Amrita 0 Reputation points
1 answer

Using Graph API for on-premise email account servers.

We are using Microsoft Graph API so that our users can connect their email accounts into our platform to help with the automation of "drip" emails. We've had no problems with this however with users who's servers are on-premise, we hit…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-24T23:05:33.7833333+00:00
Jake Toolson 0 Reputation points
answered 2025-04-25T11:02:16.99+00:00
Andy David - MVP 155.4K Reputation points MVP
1 answer

How to obtain an access token for microsoft Graph API in an outlook Add-In using Federated credentials

Hi Microsoft Team, I am developing a React.js-based Outlook Add-In and for that I have been setting up a federated credential using GitHub Actions as the external Identity Provider (IdP) for an application in Microsoft Entra ID. What additional steps are…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,918 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
4,504 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,345 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,827 questions
asked 2025-01-14T14:56:18.14+00:00
Suraj Sinha 10 Reputation points
answered 2025-04-25T08:57:10.0066667+00:00
D K 0 Reputation points
2 answers

Graph API Licenses model

I’m planning to use Microsoft Graph API to manage around 10,000 users. The key activities on Entra ID include: • Sending emails to their managers • Adding/removing users from groups • Enabling/disabling user accounts I wanted to check if there are…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
asked 2025-04-22T15:41:10.7466667+00:00
Khedkar, Vidisha 40 Reputation points
edited an answer 2025-04-25T07:58:44.11+00:00
Rukmini 1,416 Reputation points Microsoft External Staff