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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

MS Graph API - change notifications for /users on AAD, but only some fields

please I would like to ask, if there is way, how to create MS Graph API subscription to /users "collection" in AAD, but we need to be notified only about changes on given fields. We use ...
Petr Sedláček's user avatar
0 votes
0 answers
10 views

Graph API subscriptions ChangeType

I am setting up graph api subscriptions (with changeType: created,updated) to listen to my calendar events. It works perfectly, when I create an event I received a notification. The problem is that I ...
Ludo Figueiredo's user avatar
1 vote
0 answers
88 views

How to use [FindMeetingTimes] in the Graph API (SDK 5.35) from Azure Function

If you run a common sample. 1.GraphClient.Me.FindMeetingTimes, the error [/me request is only valid with delegated authentication flow.] 2.GraphClient.Users["id"].FindMeetingTimes, an [...
takaaki's user avatar
  • 11
0 votes
0 answers
8 views

How to implement Persistent TokenCache i.e. SQL or any other persistent methods in .Net framework 4.8

I have a .Net Framework 4.8 application. Recently I migrated the authentication from Azure AD graph to Microsoft Graph as Microsoft if removing support for ADAL. As part of that I have created ...
Nag Arjun's user avatar
  • 125
0 votes
0 answers
29 views

Unable to store multiple tokens for Graph and Sharepoint in cache

We have an ASP.Net Core application with Microsoft Graph integration which we are using to log users in with their Microsoft accounts, access their calendars etc. We are also in the process of ...
sjones's user avatar
  • 3
-2 votes
0 answers
30 views

How do I globally share a greeting (Image and text) created through Microsoft Teams bot? [closed]

My team created a bot in Microsoft Teams. We want to allow users to customize and share a greeting (Image+text)across multiple platforms like whatsapp, facebook, twitter, or simply copy it. See the ...
Aniket's user avatar
  • 1
0 votes
0 answers
17 views

Bad Request for List registrants - /me/onlineMeetings/{id}/registration/registrants

Trying to run the below query in the MS Graph explorer to view registrants and registrant info such as answers to custom questions: https://graph.microsoft.com/beta/me/onlineMeetings/{id}/registration/...
jcham2001's user avatar
0 votes
1 answer
42 views

Graph API error message: "Message POST is allowed in application-only context only for import purposes"

I am using Microsoft Graph API to post messages in a specific MS Teams channels but I get the following errors: in Postman: {"error":{"code":"Unauthorized","message&...
Linda D'amario's user avatar
0 votes
0 answers
26 views

Microsoft Graph API to query forwarded emails

Failing to retrieve the body of a forwarded email I am using the Microsoft Graph API to query emails from a group mailbox. However, I can't seem to query forwarded emails (specifically, getting the ...
Tammie Koh's user avatar
1 vote
2 answers
54 views

Only allow accessing emails from users assigned to Azure Enterprise Application using Confidential Client Credential Flow

I have an application where I want to send and read emails for a specific list of users assigned to an Azure Enterprise Application using the MS Graph API and the Confidential Client Credential flow. ...
littlerat's user avatar
0 votes
0 answers
46 views

Offline_access to get refresh token: "error_description":"AADSTS65001: The user or administrator has not consented to use the application with ID

I'm designing a Python script that can extract and query information and data via Microsoft Dynamics CRM API. I hope to get a refresh token so that I can get the access token for a long time without ...
Ian's user avatar
  • 1
0 votes
1 answer
21 views

Getting a list of each partner tenant's domains in PowerShell using Graph API

I work for an MSP and am trying to use PowerShell version 5 to make some changes to our clients' Microsoft 365 tenants. I've set up an app registration for this purpose, assigned it the permissions ...
Targ4028's user avatar
0 votes
0 answers
48 views

How to call MS Graph API in ASP.NET Core 6 Web API

Scenario My project consists of two applications: Frontend: Angular with msal-angular to authenticate users to Azure AD Backend: ASP.NET Core 6 Web API Purpose of application User can set a new pin ...
Maido47's user avatar
  • 53
0 votes
0 answers
7 views

Clarification needed: SP List Graph api webhook notifications

I've created a Graph subscription for changes (ChangeType = "updated") in a Sharepoint List according to docs; and am also receiving notifications with no issues. But... why does the ...
Marty's user avatar
  • 432
0 votes
0 answers
19 views

Using Graph to get email on a Government cloud

I have been tasked with creating a C# daemon that is supposed to connect government cloud to a specific user's email, pull said email and parse out specific emails with attachments that represent ...
Ed Kramer's user avatar
  • 133
0 votes
0 answers
29 views

Not able to create data structure for multiple dates to show

I am getting data from microsoft outlook graph api and I am looking for generating recurring data structures. Problem is for some use cases my code completely fails . A example of that recurrence ...
COdeingNinja's user avatar
0 votes
1 answer
20 views

I'd like to cancel a single event from recurring events using the Microsoft Graph API

I have created a recurring event from December 3rd to 6th using the graph API, which repeats daily. I'd like to cancel a single event on December 4th. How can I achieve this? I fetched the event ID ...
Vamshi's user avatar
  • 3
0 votes
1 answer
86 views

How to replicate `az ad app list` using Azure Python SDK

How do I replicate az ad app list using the official Azure Python SDK? The answer which I found included using azure-graphrbac but it's deprecated. The official docs says to use Microsoft Graph API ...
shn's user avatar
  • 3
0 votes
0 answers
19 views

MS Graph API - How to get sharepoint authorization levels

I'm use MS Graph API for check permissions of Sharepoint site, drives and items. I manage to recover all informations except a name of permission level. I have a response format (https://learn....
Tuxivinc's user avatar
0 votes
0 answers
14 views

Cannot mention users in group chat created via Graph API on Android

I use Graph API to create new group chat. Request endpoint and body are the same as described in Create Chat Graph API docs: https://learn.microsoft.com/en-us/graph/api/chat-post?view=graph-rest-1.0&...
Oleg's user avatar
  • 1
0 votes
0 answers
25 views

How to extend expired date access token in Microsoft Graph API example in WPF

I am using the Microsoft Graph API to generate OAuth 2.0 access token, which expires after 1 Hour. Route being used is: https://login.microsoftonline.com/{Tenant ID} I am passing these values in the ...
Subasri M's user avatar
-1 votes
0 answers
30 views

"AADSTS900144: The request body must contain the following parameter: 'assertion'

I need to create a Sprint boot application using which I need to copy some files to sharepoint using Graph API. Before that I am trying to connect to sharepoint via Postman. In the first step when I ...
Megan's user avatar
  • 906
0 votes
0 answers
36 views

MS GraphAPI PHP SDK fails creating a new folder

I'm trying to create a folder in my Sharepoint site using the PHP SDK, starting from this sample in the MS Learn site. Create a new folder in a drive Here's my code public function createFolder($...
Michele Bonacina's user avatar
0 votes
1 answer
59 views

Microsoft Graph API - Cannot Get Recordings after creating meeting using onlineMeeting

I'm getting error No iCalUid found for the meeting. This API is supported only for calendar backed OnlineMeeting. It is giving me response in manual process Schedule Meeting > Join > End > ...
Harry's user avatar
  • 3
0 votes
1 answer
20 views

Microsoft Graph - Get excel table row by index returns 400 API not found

I am using Microsoft Graphs to interact with the Excel worksheet in Sharepoint from my Python application using the requests. Whenever I want to access the workbook and its rows as a bunch, everything ...
michal.kyjovsky's user avatar
0 votes
0 answers
30 views

/detectedApps?$expand=managedDevices($select=id,deviceName,emailAddress) does not return data in the expanded property

I'm trying to improve the speed of a script that runs through all my tenants trying to find a specific detected application. On paper it should be possible to expand managedDevices on detectedApps to ...
Roel van der Wegen's user avatar
0 votes
0 answers
16 views

Why Microsoft Sentinel alerts doesn't appear in graph api

Why when I query graph api to get all the security alerts, Microsoft sentinel alerts are not present. Is there some configuration to do ? I have the same result with both alerts and alerts_v2 ...
Jerome's user avatar
  • 27
0 votes
0 answers
18 views

Microsoft Graph: Getting "Deleted" change notification for sent message

I created a messages subscription to Microsoft graph api to track changes. When I send an email, I get many created, updated, and deleted change notifications for the item. It is unclear what the &...
user23023223's user avatar
0 votes
1 answer
24 views

Creating a Microsoft Graph subscription for notification to security/alerts_v2 fails

When I attempt to create a Microsoft Graph subscription for notification to the security/alerts_v2 endpoint, the subscription creation fails with an invalid changeType attribute. I have tried multiple ...
Jerome's user avatar
  • 27
0 votes
0 answers
10 views

Microsoft Graph is returning html error (411 - content length Required) - but same request works using Graph Explorer

I am making a web request using FileMaker's insert from url script step to the Microsoft Graph API. Here are the details of the request: URL https://graph.microsoft.com/v1.0/users/{emailaddress}/...
Kristy_91078's user avatar
0 votes
0 answers
17 views

Filter finds nothing when top is too low

I expect that top will limit the number of results returned after they are filtered (as it is e.g. in SQL). However, it is not working for me in Microsoft Graph API at least for chats. await ...
TN.'s user avatar
  • 19k
0 votes
0 answers
14 views

Microsoft Graph: Crazy number of change notifications for sent message

I am getting an insane number of change notifications from msft graph api. For 1 created draft, I received >15 created and updated notifications. For 1 sent message, I received >50 created, ...
user23023223's user avatar
1 vote
1 answer
23 views

How to retrieve the office 365 applications of my organization using graph api

Using this endpoint: https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/children I am retrieving all the files that are within this specified folder, and in the response there is this ...
john_boy's user avatar
0 votes
0 answers
30 views
+50

Could not use Graph API and Exchange scope in one auth flow of microsoft graph API

In my Laravel app, I am using https://github.com/dcblogdev/laravel-microsoft-graph package to Log in with M365. It was working fine till I changed the scopes in config/msgraph.php file. The default ...
Divyesh Jesadiya's user avatar
0 votes
0 answers
57 views

Insufficient privileges to complete the operation Graph API Azure AD B2C

I am trying to reset Azure b2c users password using nodeJs backend API function using Graph API. I am using below code to get Access token const url = `https://login.microsoftonline.com/${...
Punknown's user avatar
0 votes
0 answers
42 views

How to get MS Graph API emails to not show up in spam

When I send an email via outlook for my custom domain it goes to the recipients inbox. However, in my c# program when when i use MS Graph API to send an email on behalf of the user it goes into the ...
Irish Redneck's user avatar
1 vote
1 answer
26 views

Outlook API "me/messages" mail id is changing when i move it to another folder

When GET request the outlook API "me/messages", its working fine and i can get the data from it. When I move this email to another folder, the ID field changes. Could you please advise on ...
R. Mohammad's user avatar
0 votes
1 answer
33 views

Why I can't add TeamSettings.ReadWrite.All when I have AzureADandPersonalMicrosoftAccount App

I'm facing a problem where I can't add the TeamSettings.ReadWrite.All permission to my app registered in Azure AD which also supports Personal Microsoft Accounts. Despite having the necessary admin ...
abdo's user avatar
  • 25
0 votes
1 answer
68 views

In an Azure Active Directory App Registration, how can I expose an API (user_impersonation) programatically?

I am updating a Powershell script which creates and configures an number of App Registrations to build an IAM solution. The script has not been executed for approx 18 months while project priorities ...
user871967's user avatar
0 votes
0 answers
50 views

Accessing and Modifying 'Viva Insights' data via script (GraphApi or Powershell)

I can use "Viva Insights" to modify my Office Hours (Lunch Hours) via https://insights.viva.office.com/#/PersonalApp/AppSettings/WorkWeekSettings/ How do I modify the same via GraphApi or ...
hdsouza's user avatar
  • 354
0 votes
0 answers
29 views

No results from MSGraph when attempting to retrieve anything using bearer token

I'm attempting to get anything from MSGraph using a bearer token: emails, events etc. I have: Made sure the app has the permissions to do whatever it needs to. Tested without using a token to get my ...
NightTom's user avatar
  • 443
1 vote
0 answers
18 views

Microsoft Graph subscriptions can't monitor recurring events instances

So I have been building my API to use the Microsoft Graph Subscriptions to read the events of a resource mailbox calendar. Everything seems to work, the only issue is that when you work with recurring ...
Billy Cottrell's user avatar
0 votes
0 answers
43 views

itemNotFound error in microsoft graph file upload api [closed]

I have one sharepoint library and have registered an app with microsoft entra ID to access it using microsoft graph api. I am sending PUT request for file upload using below graph api: https://graph....
Shubhanshu Singh's user avatar
0 votes
0 answers
43 views

Microsoft Graph API for deleting a group returning 500 error ,getting { body: 'Timeout' } error message

When I tried to call the graph API endpoint for deleting a specific group it returned 500 instead of 200 but the group was successfully deleted from Azure also getting { body: 'Timeout' } error ...
dev's user avatar
  • 1
0 votes
0 answers
22 views

Upload to OneDrive with Progress

I'm using MSGraphSDK to upload data to my onedrive using uploadTask. I want to use uploadTask because I want to show the user the progress complete. But I get the following error: GET method must not ...
Paul's user avatar
  • 662
0 votes
0 answers
12 views

How to get the preview image of Stream Webpart to show in page created via graph api

I am following this Microsoft doc on how to use Graph API to create pages. I used it to create a page with a Stream Webpart. The issue is that the Webpart on the page doesn't show a preview even ...
Alfred's user avatar
  • 1
1 vote
0 answers
19 views

PowerShell Error: "No Runspace Available" in Windows PowerShell, but not in ISE

I have a portion of a larger PowerShell script that processes a CSV file with computer information taken from Intune. The script works as intended when run in the PowerShell ISE, but when executed in ...
Quentin's user avatar
  • 11
0 votes
0 answers
14 views

Microsoft Secure Score API - service value

While using the SecureScore API, there is a data value called "service" that contains a code that represents a servie provided by Microsoft. e.g. "service": "EXO", "...
Shaun's user avatar
  • 1
0 votes
0 answers
48 views

Assign Custom Claims Provider/ Retrieve Configured Claims for Azure AD Application via Microsoft Graph API

I am currently working on integrating a custom authentication extension into Microsoft Azure Active Directory. I saw we can successfully create the custom authentication extension using the Microsoft ...
tamar's user avatar
  • 132
0 votes
1 answer
114 views

Couldn't connect to a shared mailbox with my python script

I'm trying to make a python script that connects itself to an office shared mailbox. I'm trying to build an access token and to connect with Graph's API but i should have missed some steps maybe on ...
skrylexx_'s user avatar

1
2 3 4 5
266