How to get a message using Graph from a mailbox using data in an email header
I want to use the details found when you view an email message as source (headers, spam results, body content etc) to ping the Graph API to retrieve certain details of the message. This would be done with an app that has application permissions. It would…
Conversion of pptx to jpg via graph API only returns the 1st page
Dear Sir or Madam, as noted in the documentation, the conversion of pptx to jpeg is supported by Graph API. https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-beta&tabs=http However, when I convert it to jpg,…
OfficeConversion_Fatal Error trying to convert pptx to pdf with more than 100 pages via Graph API
Dear Sir or Madam, There is an error appearing from converting pptx to pdf from o365 office via Graph API. We use a sharepoint from which we can read data via an o365 app registration. The error appears with documents starting form > 100 pages. The…
How to monitor calls to Azure CLI, Powershell, Microsoft Graph... from a user?
Hi everyone, I would like to know if there is a possibility to log the events of the calls made through the API to query information. The goal is to know if they are making many calls that triggers an alert in Sentinel to see if an attacker is doing an…
Unable to create Azure Custom Role using JSON and the PoweShell New-AzRoleDefinition ?
When I execute the below PowerShell script to create a custom Azure Role based on the specific JSON content below. Script: $paramNewAzRoleDefinition = @{ InputFile = C:\Custom.JSON Verbose = $true Debug = $true } New-AzRoleDefinition…
Apply Sensitivity Labels to Microsoft Exchange Mail via .NET core code.
Hi, I would like to apply sensitivity labels to emails programmatically. I have successfully obtained the email ID (message ID) and sensitivity label ID using Graph API in .NET Core Application C#. However, I cannot find an endpoint within the Microsoft…
Problems when receiving change notifications when getting presence
Hello we have a problem when we receive change notifications from graph API We receive null values on activity and availability. { "activity": "String", "availability":"String", "id":…
Encountering an issue while collecting billing data using the Azure Blob SDK, where the stream seems to be forcibly closed after processing a specific number of records.
https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-download-java#download-from-a-stream I am in the process of transitioning to the Azure CSP Billing Data API and have implemented data collection functionality using the Azure Blob SDK, as…
Microsoft Universal Print: The token does not have one or more required security scopes. Client Credentials Flow
Hi, I am working with a solution where a client needs to use Microsoft Universal Print. I am using Microsoft Graph and the client credentials flow. After getting the access token via the credentials instance I have the following error upon making a…
System.InvalidOperationException: Content type text/html does not have a factory registered to be parsed
I am using a B2C tenant I have an app registration with Mail.Send Application permissions With granted Admin consent. The user with id b29d1ccb-xxxxxxxxxxxx is an internal account with User principal name:…
Is it possible to create tenant level allow/block in Microsoft 365 via Graph API?
There is a method via Powershell that requires the Exchange.Manage permission and Exchange Administrator assigned role on a Service Principal. This method requires to connect to Exchange Online first and then running the New-TenantAllowBlockListItems…
Grap API call to get the events from a group is not returning all the events that are actually sent to that group email id
I have teams' channel and I'm to get the events sent to the team's channel using the group Id associated to the team. But I'm not getting all the events that are actually sent to that group email id.
Graph API and Announcing mandatory multi-factor authentication for Azure sign-in
How to avoid having problems with: getting the presence of Teams user using graph api. In C# by using access token for webchat. I do not want to get effected by the MFA forcing. In other words: How to bypass MFA for multi-tenant azure app using graph…
Adding team owner through Graph API causes 403 error
Hi guys! I have faced an issue with Team Graph API. Some times ago (approximately 3 month ago) API that adds team owner just stopped working. Here is a brief investigation. Our application is used Application type of permissions for performing API…
Suddenly getting "UserPrincipal doesn't have the key ID configured"
I have an ongoing automation that executes various calls to the MS API Recently I've started to fail with the following message below. In this case, reauthenticating helped solve the issue but it seems like the 'refresh token' timed out for some…
token renewal flow
Hi Microsoft Q&A and thanks in advance! I want to consume an endpoint from Graph beta that only supports delegation permission type and I want to fully understand the renewal process as I saw different interval times in the documentation. If the…
Suddenly gets UnknownError using the /search/acronym endpoint
As from Monday 16th I constantly get an error when trying to connect to the acronym endpoint: https://learn.microsoft.com/en-us/graph/api/resources/search-acronym I have not changed anything in the way I connect or anything and it worked when I left…
Microsoft graph api always retrieves old document library name even if the library name is modified in SharePoint
Hi, I have been using Microsoft Graph api to retrieve SharePoint site's files, folders, document libraries for my application. When i change the document library name in SharePoint, graph api always returns me the old library name in its result. I was…
WebSocket connection to notification URL fails
I am following this guide on how to get a Websocket endpoint for my onedrive https://learn.microsoft.com/en-us/graph/api/subscriptions-socketio?view=graph-rest-1.0&tabs=http I get a fine notification Url back from /subscribtions/socketIo endpoint…
Unable to define the sites for an App Registration for SahrePoint with Site.Selected
I have this App registration with Site.Selected:- now i want to define the sites for the above "Sites.Selected", so i tried the following:- $siteUrl = "https://*.sharepoint.com/sites/integration-prod" $clientId =…