12,709 questions with Microsoft Graph-related tags

Sort by: Updated
2 answers

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…

Outlook
Outlook
A family of Microsoft email and calendar products.
4,269 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
asked 2025-01-08T00:58:15.5833333+00:00
josh j 0 Reputation points
edited the question 2025-01-08T03:09:45.9533333+00:00
Rakesh Gurram 10,815 Reputation points Microsoft Vendor
1 answer

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…

Outlook
Outlook
A family of Microsoft email and calendar products.
4,269 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
asked 2025-01-08T00:51:12.4733333+00:00
josh j 0 Reputation points
answered 2025-01-08T02:54:59.86+00:00
CarlZhao-MSFT 44,276 Reputation points
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,169 questions
asked 2025-01-07T16:33:41.1933333+00:00
Josh Earel 0 Reputation points
answered 2025-01-08T02:42:27.2533333+00:00
Xyza Xue_MSFT 27,036 Reputation points Microsoft Vendor
0 answers

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…

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
953 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
asked 2024-12-10T21:44:13.2833333+00:00
Priyavert Sharma 136 Reputation points
commented 2025-01-08T01:04:22.7166667+00:00
Laxman Reddy Revuri 1,445 Reputation points Microsoft Vendor
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
asked 2025-01-07T17:08:49.56+00:00
Dan Peters 31 Reputation points
edited a comment 2025-01-08T00:14:28.6733333+00:00
Dan Peters 31 Reputation points
0 answers

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 =…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
asked 2025-01-07T19:43:54.7533333+00:00
Yang Liu 0 Reputation points
commented 2025-01-07T19:46:19.95+00:00
Yang Liu 0 Reputation points
2 answers One of the answers was accepted by the question author.

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?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,749 questions
asked 2025-01-07T16:24:43.36+00:00
Jarvis 0 Reputation points
edited the question 2025-01-07T19:09:23.5833333+00:00
Raja Pothuraju 10,520 Reputation points Microsoft Vendor
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,749 questions
asked 2024-12-20T16:43:27.13+00:00
Filippo Iacobellis 90 Reputation points
commented 2025-01-07T17:46:44.82+00:00
Vasil Michev 111.4K Reputation points MVP
5 answers

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…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,615 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
asked 2024-09-10T07:53:53.3233333+00:00
Dmytro_dev 0 Reputation points
commented 2025-01-07T16:40:43.48+00:00
Samee 0 Reputation points
0 answers

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
asked 2025-01-07T15:29:19.4933333+00:00
Barış Bıkmaz 0 Reputation points
0 answers

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,975 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,749 questions
asked 2025-01-07T13:03:54.8+00:00
Danny Bollaert 20 Reputation points
1 answer

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:…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
asked 2025-01-03T14:31:36.6333333+00:00
Shannon Hagmaier 0 Reputation points Microsoft Employee
commented 2025-01-07T13:00:18.7+00:00
Shannon Hagmaier 0 Reputation points Microsoft Employee
1 answer

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,…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,615 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,463 questions
Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
519 questions
asked 2025-01-05T22:29:18.2466667+00:00
Mohamed Lotfy 10 Reputation points
answered 2025-01-07T11:50:29.6133333+00:00
Sayali-MSFT 3,321 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,239 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,314 questions
asked 2025-01-03T05:45:14.4766667+00:00
Mageshwari SS 20 Reputation points
commented 2025-01-07T10:40:41.61+00:00
Mageshwari SS 20 Reputation points
0 answers

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":…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,615 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,463 questions
asked 2024-12-05T21:57:49.8466667+00:00
Pat Paquin 0 Reputation points
commented 2025-01-07T10:21:37.73+00:00
Meghana-MSFT 3,906 Reputation points Microsoft Vendor
2 answers

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,169 questions
asked 2025-01-07T04:36:46.0866667+00:00
Anumalasetti, Naveen 0 Reputation points
commented 2025-01-07T10:15:34.9366667+00:00
Anumalasetti, Naveen 0 Reputation points
1 answer

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,…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,239 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,593 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,720 questions
asked 2024-11-25T08:33:02.72+00:00
Ameer 11 Reputation points
answered 2025-01-07T10:10:51.13+00:00
Rajat Vashistha-MSFT 90 Reputation points Microsoft Vendor
2 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,030 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,025 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,171 questions
asked 2025-01-06T11:19:30.77+00:00
Acket, Kim (Antwerp) 0 Reputation points
commented 2025-01-07T09:27:56.5566667+00:00
Acket, Kim (Antwerp) 0 Reputation points
0 answers

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…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,815 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
4,269 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 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,125 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,232 questions
asked 2025-01-07T09:23:07.1466667+00:00
Suraj Sinha 5 Reputation points
edited the question 2025-01-07T09:24:02.7733333+00:00
Suraj Sinha 5 Reputation points
2 answers

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,709 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,169 questions
asked 2025-01-06T14:54:27.92+00:00
Gautam, Priyamvada 0 Reputation points
edited the question 2025-01-07T09:03:29.7433333+00:00
Ling Zhou_MSFT 20,090 Reputation points Microsoft Vendor