Microsoft Graph Explorer
MetaData
MetaData is like Get-Member which shows all properties can be called using Graph API. It includes Property Name, NavigationProperty Name [Related Object].
Open Browser
https://graph.microsoft.com/v1.0/$metadata
Look For :
EntityType name="User"
EntityType name="group"

OData : Open Data is a protocol that is used for a creation of an API’s which is used to expose data over https.
$Var = Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0"

Kind Property
DirectoryReadAll : Will provide you User license details
Microsoft Graph API

HTTP Methods

Request Structure


PATCH [Update] : Requires UserReadWriteAll Permission

Microsoft Graph User
https://graph.microsoft.com/beta/$metadata
Find :
EntityType Name="user"
Property Name
NavigationProperty Name [Related Object]

https://graph.microsoft.com/beta/users/rohit@rohit.club/manageddevices

Microsoft Graph Delta Endpoints

When you perform Delta then only the incremental value of all the users will be displayed.
'https://graph.microsoft.com/v1.0/users/delta'
If you want to have specific data which are changed then you have to Copy the @odata.nextLink value and paste it to the GET Box
Copy and keep the “@odata.nextLink” value which is generated this time if you want to see the incremental data changed for the day.

Graph Explorer Query
https://docs.microsoft.com/en-us/graph/query-parameters#error-handling-for-query-parameters






Combining Two Query (&)
https://graph.microsoft.com/v1.0/users?$select=displayName,userPrincipalName&$count=true&$top=3
Microsoft Graph Pagination

When the API Server is unable to send all the data at once then the Server follows the paging process where it will send the 1st page with @odata.nextlink which is the link for the next page. This is called Server Side Paging.

Client/Application defines the page size $top=2 which needs to be received by a Server called Client Side Pagination.
Microsoft Graph Batching

Batching is the process of combining multiple Queries into one single Query and sending it to Microsoft Graph API.
Example:

Oauth 2.0 Client Credential Flow

This type of grant is commonly used for server-to-server interactions that must run in the background, without immediate interaction with a user. These types of applications are often referred to as daemons or service accounts.
The Endpoint will be used for this type of flow is Token endpoint.
&Grant_Type=Client_Credentials(check the below image)

Open Id Connect

