14,404 questions
1
vote
0
answers
115
views
Graph call to get drive (default document library) for a site started failing
The call (get the site default document library), usually "Shared Documents" started failing today for some reason.
https://graph.microsoft.com/v1.0/sites/{siteid}/drive
Documentation: Get ...
1
vote
1
answer
195
views
Unauthorized 401 when i access /user/{id}/messages through graph api within delegated mode
I have meet big problem about read mail from my outlook account, it takes me about serval days, however still failed, somebody can help me?
I am referring to this document:
https://learn.microsoft.com/...
0
votes
1
answer
93
views
Issue Accessing /me/messages for fetching Outlook messages despite the valid Token
I'm trying to access Microsoft Graph API to retrieve user data (specifically the /me/messages) from a React frontend. I've already registered an application in Azure, granted the necessary permissions ...
1
vote
1
answer
78
views
How do I get the Username from Azure AD B2C using MSGraph?
Microsoft is retiring Azure AD B2C. It will be supported for now but we are looking at moving to Entra External Id. We want to be able to transfer the users over to the new solution. This page talks ...
0
votes
1
answer
232
views
Power Shell script to remove a user from all the groups the user is a member of and owner of
I want to write a power shell script to remove the user from all the groups the user is added to as a Member or as Owner , including those :-
1- Distribution list
2- Security Group
3- Mail-Enabled ...
0
votes
1
answer
116
views
Microsoft Graph: Select query parameter in Get Todo Task
How to correctly build Todo Task get request with limited set of returned data?
According to MsGraph documentation i should use "$select" parameter.
But anytime when i use it in my request:
/...
0
votes
0
answers
30
views
Get user-edited content of interactively shown email with MS Graph in Browser
Environment: C#, .NET8, MS Graph API, Webview2, Windows Forms
I created an email with Graph, got its "WebLink" URL, now showing it embedded in WebView2. User edits the email and has changed ...
-1
votes
1
answer
140
views
Access messages from one-on-one chat belonging to different tenant using MS Graph application
My company wants to move from MS Teams to a different platform, but we do want to save the chat history and it seems to be a bit unreachable. I did a few tests and the main problem now is the ...
3
votes
1
answer
206
views
Microsoft Graph DateTimeTimeZone correct initialization
How to correctly initialize DateTimeTimeZone from DateTimeOffset instance?
Extensions class DateTimeTimeZoneExtensions has two variants of ToDateTimeTimeZone for DateTimeOffset.
public static ...
2
votes
0
answers
78
views
MSAL on MacCatalyst MAUI - Platform not supported
I am working on a MAUI app that uses MS Graph interfaces, such as requesting MS Teams Presence like this:
public static async Task<string?> GetCurrentStatusAsync(CredentialInformation ...
0
votes
2
answers
387
views
Filter SharePoint List Items by lastModifiedDateTime using Graph API
I am trying to filter a SharePoint List of Items to only get those that were modified within the past day. According to the following Graph API documents, I should be able to use the
$filter=...
0
votes
1
answer
525
views
How do I filter Microsoft Graph by odata.type
I am working in Power Automate to pull data from Microsoft Graph, specifically:
https://graph.microsoft.us/v1.0/deviceManagement/deviceCompliancePolicies
I need to filter the results to only show ...
0
votes
1
answer
52
views
Bad Request while trying to add owner to a Group
I'm trying to add an owner to list of groups using the following script:
# Install-Module Microsoft.Graph -Scope AllUsers
# Import-Module Microsoft.Graph
# Connect to Microsoft Graph
Connect-MgGraph ...
0
votes
0
answers
100
views
How can I non‐interactively authenticate (using impersonation) and migrate OneNote notebooks for users now that Graph API app-only tokens are retired?
We’re building an unattended migration tool to move all OneNote notebooks, sections, and pages for ~2,500 Microsoft 365 users into Google Workspace. Until recently, our service used app-only (...
0
votes
0
answers
98
views
The Thread Id is invalid - Microsoft graph API for team
I have gone through the documentations as well other resources still, not able to find the RCA for the issue. I am trying to post a message on a team channel using the graph API.
I am able to get the ...
1
vote
0
answers
80
views
Adding Teams Decisions app via Graph API throws "onBehalfOfUserMri cannot be null or empty"
Recently adding Teams app to a team programmatically via MS Graph API SDK (occurs on v3 and v4, haven't tested with v5 as that would require somewhat large changes in the code so will only do that if ...
0
votes
0
answers
51
views
Receiving email with no "To" email address (or CC or BCC)
I am sending an email from mailbox #1 (hosted by Provider A) to mailbox #2 (hosted as MS365 mailbox).
There's no code here - I'm just opening Outlook, composing new message, sending the mail, just ...
-3
votes
1
answer
189
views
Getting Microsoft Teams Calls For the member
I am working on a task that requires integration with Microsoft Teams Calls, I want to retrieve the calls form the users, I Explored Microsoft Graph API and found this api: GET /communications/...
0
votes
0
answers
42
views
MSGraph ImmutableId of a message changes when draft is sent
I am trying to keep track of emails sent using the MSGraph API. If an email is sent using the Reply endpoint, it understandably does not return the messageId property that I need in the response body. ...
0
votes
1
answer
142
views
Call Graph API using the Azure Function managed identity is raising this error "Acces Denied"
We have an Azure Function on .NET 8.0. and we enabled the managed identity of the Azure Function. Then we run those commands as per this official MS link https://learn.microsoft.com/en-us/sharepoint/...
2
votes
1
answer
314
views
AADB2C with Graph API: how to filter users by the nested `identities` collection?
I'm using the Graph API via HTTP. I need to filter on all users that have a signInType of "emailAddress".
I'm using this select:
https://graph.microsoft.com/v1.0/users?$select=displayName,...
1
vote
1
answer
102
views
MS Graph SDK - How to perform date range query to get emails in certain time frame?
I'm using the python MS graph sdk to try to perform a query. I'm able to successfully get all of the user's emails, but I can't seem to be able to use the sdk to get the emails from a certain time ...
2
votes
1
answer
106
views
Microsoft Graph PowerShell cmdlet not returning @odata.deltaLink or @odata.nextLink in delta query
I'm working with Microsoft Graph delta query for users to track changes in user objects.
When I use the HTTP request directly (e.g., via Postman or Invoke-RestMethod), I get the expected response ...
2
votes
1
answer
178
views
How to edit Excel Online file by Powershell using Microsoft Graph API?
I have registered app in Azure and I have it's clientId and clientSecret for authentication.
I want to be able by Powershell to write into Excel online file cell. The App registration should have ...
1
vote
1
answer
94
views
MSGraph user details - how to have the response include the user's etag value?
I can fetch a user's details using MSGraph no biggy (from ADB2C even).
The query URL is:
https://graph.microsoft.com/beta/users/:userId?$select=Id,DisplayName
(:userId is replaced with an ...