MSGraphRequest
2.0.0
Simplifies making requests against Microsoft Graph API including authentication handling.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2026 MSEndpointMgr.com. All rights reserved.
Package Details
Author(s)
- Nickolaj Andersen & Jan Ketil Skanke
Tags
Microsoft Graph API Intune REST OAuth2 Authentication MSGraph EntraID AzureAD PKCE ManagedIdentity
Functions
Connect-MSGraphRequest Disconnect-MSGraphRequest Test-AccessToken Invoke-MSGraphOperation Add-AuthenticationHeaderItem Show-AuthenticationInfo Remove-AuthenticationHeaderItem
Dependencies
This module has no dependencies.
Release Notes
v2.0.0: 100% native REST auth (zero SDK dependencies). Added Connect-MSGraphRequest with 6 auth flows (Interactive PKCE, DeviceCode, ClientSecret, ClientCertificate, ManagedIdentity, BYOT). Automatic token refresh. See https://github.com/MSEndpointMgr/MSGraphRequest/blob/main/releasenotes.md
FileList
- MSGraphRequest.nuspec
- Public\Disconnect-MSGraphRequest.ps1
- LICENSE
- Private\ConvertFrom-JwtToken.ps1
- Private\Invoke-TokenRequest.ps1
- Public\Invoke-MSGraphOperation.ps1
- Private\Get-TokenContext.ps1
- Private\New-AuthenticationHeader.ps1
- Public\Remove-AuthenticationHeaderItem.ps1
- MSGraphRequest.psd1
- Private\Invoke-DeviceCodeAuth.ps1
- Private\New-ClientAssertion.ps1
- Public\Show-AuthenticationInfo.ps1
- MSGraphRequest.psm1
- Private\Invoke-InteractiveAuth.ps1
- Public\Add-AuthenticationHeaderItem.ps1
- Public\Test-AccessToken.ps1
- README.md
- Private\Invoke-ManagedIdentityAuth.ps1
- Public\Connect-MSGraphRequest.ps1
- releasenotes.md