Skip to content

Microsoft Graph Explorer and API Basics

Violet Hansen edited this page Jul 13, 2024 · 1 revision

Microsoft Graph Explorer and API Basics

Use the aka.ms/ge link to access the Microsoft Graph Explorer. You will need to sign into your tenant to access the Microsoft Graph Explorer and provide the necessary permissions to access the data you want to work with.


How To Get The Tenant ID Using Microsoft Graph Explorer

Send a GET request to the following endpoint:

https://graph.microsoft.com/beta/organization

How To List All Intune Device Configuration Policies Using Microsoft Graph Explorer

Send a GET request to the following endpoint:

https://graph.microsoft.com/beta/deviceManagement/configurationPolicies

How To Get A Specific Intune Device Configuration Policy Using Microsoft Graph Explorer

Send a GET request to the following endpoint (replace PolicyID with the ID of the policy you want to get):

https://graph.microsoft.com/beta/deviceManagement/configurationPolicies/{PolicyID}

Example:

https://graph.microsoft.com/beta/deviceManagement/configurationPolicies/0f6899f8-f2af-49b9-90c7-dd9ab7315fea

How To Upload Intune Device Configuration Policies Using Microsoft Graph Explorer

Send a POST request to the following endpoint:

https://graph.microsoft.com/beta/deviceManagement/configurationPolicies

And in the request body, include the JSON payload for the device configuration policy you want to upload. You can find them in here.


How To List Intune Device Compliance Policies Using Microsoft Graph Explorer

Send a GET request to the following endpoint:

https://graph.microsoft.com/beta/deviceManagement/deviceCompliancePolicies

How To Upload Intune Device Compliance Policies Using Microsoft Graph Explorer

Send a POST request to the following endpoint:

https://graph.microsoft.com/beta/deviceManagement/deviceCompliancePolicies

And in the request body, include the JSON payload for the device compliance policy you want to upload. You can find them in here.










C#


Clone this wiki locally