Access Denied to Graph (despite valid access token and permissions)
Hi, I'm getting Access Denied for trying to do a GET request on https://graph.microsoft.com/v1.0/users/${userId}/messages I've obtained a valid access token from: https://login.microsoftonline.com/consumers/oauth2/v2.0/token I've obtained my User…
Getting Access Denied even though I have the proper access token and permissions
Hi, So my main goal is to get the list of emails from my outlook thru automation. My steps to reproduce: Get access token from https://login.microsoftonline.com/consumers/oauth2/v2.0/token Use access token to get User ID from…
Unauthorized error when getting sharepoint list attachment despite having "Files.ReadWrite.All" permission
I am writing an ASP web application that can interact with a Sharepoint list, creating new items and updating existing items. We have an Attachments field in that list. Because accessing sharepoint list item attachment files is not available in the…
Using Get Communications/Calls API and receiving 500 Internal Server error.
I am attempting to retrieve active call or meeting details using the endpoint: https://graph.microsoft.com/v1.0/communications/calls/. However, no values are being returned in the response. Additionally, when using historical Call IDs collected from…
View Access Packages assigned to a list of users supplied via a CSV file.
Hello, Is there a way to use graph (or any other command line utility) to view the Azure Access Packages assigned to a list of users that is provided by a CSV file? something like: $users = import-csv…
graph API could only access message but not attachments
I am trying to download outlook email attachments through the graph API, I followed the instruction and get a working token: Step1: AUTHORITY = f'https://login.microsoftonline.com/{TENANT_ID}' SCOPES =…
Azure VPN - Migrate Service Principals from the retiring Azure AD Graph APIs to Microsoft Graph
We also got the notification to migrate to Microsoft Graph API but having a hard time figuring out where to make the changes for Azure VPN?
Get-MgServicePrincipal returning empty AppRoles
Hi all, using command Get-MgServicePrincipal returns empty AppRoles array even though there are permissions assigned through Microsoft Entra: If I use Get-MgServicePrincipalAppRoleAssignment I correctly get 7 objects (which correspond to the 7…
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…
Sorting Drives by Name with Microsoft Graph API
There is an issue with sorting the drives in a SharePoint site by their name using the Microsoft Graph API. According to the documentation, this should be possible, but the results are always returned as an unsorted list. What might be the cause of this…
How I can add an application to my Entra External ID user flow using Graph API?
Context We have built a portal where our in-house developers can register their applications. After approval, graph API's are called automatically to create the app registration/service principal. Multiple forms of authentication are supported. Use…
How to assign a group to a device configuration?
In C# I am using the graph sdk to create a device configuration and I am trying to assign it to a security group but keep getting an OData error message. I am following the instructions from this link:…
Connecting Microsoft Graph Education API to Power BI
With the deprecation of Insights for leaders in Microsoft SDS and Teams, a need has arisen to connect to the Microsoft Graph Education API for data collection to build a Power BI dashboard. Is there a reliable method for establishing this connection,…
Onedrive Authorization Issue
Hi Support Team, We encounter the problem "Need admin approval" when we try to authorize OneDrive using oauth 2.0. The below urls are used Auth URL: https://login.microsoftonline.com/common/oauth2/v2.0/authorize Access Token…
Graph API not allowing to create a Teams from existing HiddenMembership group
Hi, I'm at a stand still. We've been creating Microsoft 365 groups (https://graph.microsoft.com/v1.0/groups) with these settings for the past 3 years no issues. { "@odata.context":…
Issue while reading excel file from sharepoint Via graph API
Hi Team, I am reading an excel file that has multiple sheets from a standalone sharepiont site. While reading it the data inside the sheets is not being read rather it is coming empty columns. While debuggint the issue I observed a behaviour where by…
Assistance Needed with OneDrive and Office 365 Activity PowerShell Scripts
Dear All, I am using the scripts below to retrieve OneDrive and Office 365 activity details for my tenant. However, in the "User Principal Name" field, I am getting an ID instead of the email address. This issue started recently prior to that,…
General Exception Using List Item Patch API Endpoint
The endpoint : PATCH https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/fields Is not working today, we get a 'General exception while processing'. Statuscode 500 Stacktrace: at…
Authenticate user in Azure AD without client-secret and authentication pop-ups in an Outlook Add-In
Hi Microsoft Team, I am developing a React.js-based Outlook Add-In and need assistance with implementing a seamless authentication flow for my application. Here's the situation: Objective: I want to authenticate users in Azure Active Directory…
Not able to call SharePoint Document Library driveitems using MS Graph API with filter functions 'contains' and 'endswith'.
We need to get files from the SharePoint Document Library with a filter that uses 'contains' and 'endswith'. The query goes as below: https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/items?$filter=contains(Name,'100001') and…