11,336 questions with Microsoft Graph-related tags

Sort by: Updated
2 answers

What is the UserID required by Get-MgUserContact?

According to the documentation, Get-MgUserContact requires either a UPN or a UserId in the -UserId field. However, mail contacts don't have UPNs, and the documentation doesn't define what a mail contact's UserID is. I've tried email address, display…

Microsoft Exchange Online
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,283 questions
asked 2024-07-01T21:34:31.9933333+00:00
JayCarper-5747 216 Reputation points
commented 2024-07-10T06:22:15.9133333+00:00
Bruce Jing-MSFT 2,520 Reputation points Microsoft Vendor
1 answer

How to join localdevice on Entra ID programatically

Hi , I want to join my local device to Entra ID using c#. I have gone through the Microsoft Graph API documentation as well but didn't get any information related to this topic please help me.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,447 questions
asked 2024-07-09T11:43:20.7166667+00:00
Akesh Jadhav 0 Reputation points
answered 2024-07-10T05:58:24.11+00:00
Harpreet Singh Matharoo 7,621 Reputation points Microsoft Employee
1 answer

Something went wrong MDI instance cannot be created

How can I fix the below issue? The MDI instance on my existing tenant was not completed before by my predecessor, hence I deleted the three builtin groups, however, I am still stuck at the above issue, despite the gMSA has been created and the agent…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,283 questions
Microsoft Defender for Identity
Microsoft Defender for Identity
A Microsoft service that helps protect enterprise hybrid environments from multiple types of advanced, targeted cyberattacks and insider threats.
178 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,447 questions
asked 2024-07-02T15:45:31.0433333+00:00
EnterpriseArchitect 5,096 Reputation points
commented 2024-07-10T05:12:46.6+00:00
EnterpriseArchitect 5,096 Reputation points
0 answers

New-MgSubscription fails when using a PowerShell based function app.

When you send a request to create a subscription to get change notifications through webhooks, the subscription service checks if the notificationUrl property in your subscription request is valid. My notificationUrl is a PowerShell based function app…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
asked 2024-07-10T04:43:44.0766667+00:00
Paul Rebelo 1 Reputation point
1 answer

Need help in migrating Apps from ADAL to MSAL

Hi Team, Could you please me to check how an app is using ADAL from "app registration" form level? I was able to get list of apps using ADAL from Admin center. When I compared the app using ADAL along with a new app I just created, I couldn't…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,447 questions
asked 2024-07-02T09:09:14.83+00:00
PavanJ-9988 0 Reputation points
commented 2024-07-10T04:13:33.6733333+00:00
Shweta Mathur 29,261 Reputation points Microsoft Employee
1 answer

I need help renewing my icrosoft 365 developer programe expired subscription

I have recently joined the developer programme, and in the the middle of developing an interactive platform for word, and also looking at improving the team chat. My laptop was stolen and password hacked, I struggled with retrieving my log in details…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,536 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
Microsoft 365 Publishing
Microsoft 365 Publishing
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line. Publishing: The process of preparing, producing, and releasing content for distribution or sale.
612 questions
asked 2024-07-06T15:34:51.44+00:00
Emmanuel emmanuel.niki 0 Reputation points
commented 2024-07-10T02:35:11.2433333+00:00
LiweiTian-MSFT 16,535 Reputation points Microsoft Vendor
1 answer

User Authentication with Graph API

This will be a fairly lengthy set of questions so thanks in advance! I currently have an app registered where a user can follow this link: https://login.microsoftonline.com/{tenant_id}/adminconsent?client_id={client_id} and they are prompted to grant…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
948 questions
asked 2024-07-09T18:30:22.99+00:00
Joseph Wylie 25 Reputation points
answered 2024-07-10T01:48:40.8466667+00:00
Yakun Huang-MSFT 2,185 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Script to request and get access token from Azure Microsoft graph API

I'm using the following script to get inactive sign in from azure: $AppClientId="" $Secret = "" $uri = "https://login.microsoft.com/a1a5384f-f0fc-4df9-9f37-caf775af43c1/oauth2/token" $body = @{ grant_type =…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
asked 2023-01-16T14:54:32.3133333+00:00
A.Elrayes 186 Reputation points
commented 2024-07-10T01:29:20.5566667+00:00
Frena Makenson 0 Reputation points
1 answer

Efficient Reporting for 60,000 Intune Devices: Graph API Solutions ?

Hello, We're working on generating reports about devices enrolled in Intune using the Graph API. Our challenge is that to get detailed data (like compliance policies or installed applications), it seems we need to make separate requests for each device.…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,686 questions
asked 2024-07-09T08:59:11.04+00:00
Sara Caballero 40 Reputation points
answered 2024-07-10T01:23:12.2966667+00:00
Crystal-MSFT 45,821 Reputation points Microsoft Vendor
0 answers

Create roleAssignmentScheduleRequests fail with RoleNotFound error.

If we create role definition using HTTP API (same also if using MS Graph Python SDK; client credential OAUTH auth): https://graph.microsoft.com/v1.0/roleManagement/directory/roleDefinitions { "description": "Role description", …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
asked 2024-07-01T11:24:10.12+00:00
KlemenS 0 Reputation points
commented 2024-07-09T22:19:38.9866667+00:00
Marilee Turscak-MSFT 36,161 Reputation points Microsoft Employee
0 answers

500 error response when updating calendar event via graph API

On behalf of one specific customer, we've suddenly started getting a 500 response when attempting to make PATCH requests to the /v1.0/me/calendars/{calendar_id}/events/{event_id} endpoint in order to update certain calendar events. The error response…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,271 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
asked 2024-07-09T17:34:35.6466667+00:00
Elyes Graba 46 Reputation points
1 answer One of the answers was accepted by the question author.

Pulling Sensitivity Labels by Columns names in OneDrive/SharePoint

Hi there, we're hoping to collect sensitivity label names without the use of the extractSensitivityLabels API as it wouldn't be feasible on large environments. As an alternative, we're attempting the following: …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
948 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,200 questions
asked 2024-07-08T20:24:54.7233333+00:00
Ivan Zeljkovic 80 Reputation points
commented 2024-07-09T14:03:18.6666667+00:00
Ivan Zeljkovic 80 Reputation points
1 answer

Entra ID App Publication for MS Graph API Integration

At Miro, we want to fetch sensitivity labels using MS Graph APIs in our backend system. To achieve this, we require an application in Microsoft Entra ID. This application will enable customers to connect via the OAuth 2.0 flow, allowing Miro’s backend to…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,042 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,447 questions
asked 2024-07-02T10:10:20.97+00:00
Vimal Dhaduk 0 Reputation points
edited an answer 2024-07-09T10:33:07.7+00:00
Navya 6,205 Reputation points Microsoft Vendor
1 answer

Accessing Outlook Calendar Graph API from background service

I'm working on a webapp (SPA and backend) that must constantly access the user's Outlook calendar. The users may come from multiple directories and personal accounts. The app will work 24/7, running the background service and modifying the user's…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
asked 2024-07-03T14:50:37.1266667+00:00
Alexander R 20 Reputation points
commented 2024-07-09T10:28:33.5966667+00:00
CarlZhao-MSFT 39,741 Reputation points
1 answer

Error "App is blocked by app permission policy"

I am developing a proactive messaging Teams bot and need to install the app into a single tenant with Graph to store the conversation reference that is supposedly returned for future notifications to an individual user. The error I get: …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 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,026 questions
asked 2024-07-09T08:22:02.23+00:00
Evans, Dean1 (GE Aerospace) 0 Reputation points
answered 2024-07-09T10:10:36.8833333+00:00
CarlZhao-MSFT 39,741 Reputation points
1 answer One of the answers was accepted by the question author.

Change tracking not supported on Azure US Government for Administrative Unit

Hellow Microsoft teams, I am trying to use the delta query to track changes on Administrative Unit objects in Microsoft Graph dataAzure US Government environment. However, I received an error stating that change tracking is not supported in this…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
asked 2024-07-02T08:48:54.0466667+00:00
Henry Vu 20 Reputation points
accepted 2024-07-09T09:06:55.9566667+00:00
Henry Vu 20 Reputation points
1 answer

POST https://graph.microsoft.com/v1.0/subscriptions resulted in a 400 Bad Request

Below is my code for subscribing notifications from outlook calendar webhooks. The code is not responding with validation token for the client side as unable to complete the POST subscribe request. Please help. $client = new \GuzzleHttp\Client(); …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,049 questions
asked 2024-07-03T05:32:54.5866667+00:00
Shruti Malode 0 Reputation points
commented 2024-07-09T08:54:01.31+00:00
Yakun Huang-MSFT 2,185 Reputation points Microsoft Vendor
1 answer

How to export all posts in a Teams channel?

I want to export all posts done in a Teams channel. Please provide the format of a query string.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
asked 2024-07-09T03:24:27.71+00:00
Dr Chua Lian Choon (Richard) 0 Reputation points
answered 2024-07-09T08:29:23.7266667+00:00
CarlZhao-MSFT 39,741 Reputation points
0 answers

Programmatically create inbound webhook to Teams Channel?

I want my application to be able to post messages/notifications into external Teams channels. So far I've only found the manual way to do this- making the user generate an incoming webhook URL through their personal Teams app. They would then have to…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,536 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 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,026 questions
asked 2024-07-08T13:26:55.7933333+00:00
Vikram_162 0 Reputation points
commented 2024-07-09T08:02:53.5366667+00:00
Meghana-MSFT 3,831 Reputation points Microsoft Vendor
1 answer

Graph API Drive Search does only show my own files

Hello, I am using REST API to search for Excel files that are visible to me. Basically I want to replicate the results that I get on the OneDrive UI if I search with the "All files" filter ( see screenshot) My problem is that the endpoint…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,314 questions
asked 2024-07-08T15:35:01.3166667+00:00
Shadi Rashed 66 Reputation points
commented 2024-07-09T07:33:31.22+00:00
Shadi Rashed 66 Reputation points