MgGraphCommunity

1.1.0

A self-contained, community-maintained drop-in alternative to Connect-MgGraph. Pure-PowerShell OAuth 2.0 flows (PKCE, device code, client credentials, certificate, managed identity, BYO token) plus its own Invoke-MgGraphCommunityRequest for calling Graph endpoints. No required dependencies. No WAM. No MSAL.

Minimum PowerShell version

7.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name MgGraphCommunity -RequiredVersion 1.1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name MgGraphCommunity -Version 1.1.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) MgGraphCommunity contributors. Licensed under MIT.

Package Details

Author(s)

  • MgGraphCommunity contributors

Tags

Microsoft Graph MgGraph Authentication OAuth PKCE Intune Entra EntraID Community

Functions

Connect-MgGraphCommunity Disconnect-MgGraphCommunity Get-MgGraphCommunityContext Invoke-MgGraphCommunityRequest

Dependencies

This module has no dependencies.

Release Notes

1.1.0
- New: Invoke-MgGraphCommunityRequest (alias Invoke-MgcRequest) - pure-PowerShell Graph caller.
 Supports relative URIs, -Beta, -FollowPagination, auto-refresh on 401, Retry-After on 429.
- Removed Microsoft.Graph.Authentication as a RequiredModule. The module is now fully self-contained.
- SDK handoff is now opportunistic: if Microsoft.Graph.Authentication is installed we still hand
 the token to Connect-MgGraph so Microsoft.Graph.* cmdlets continue to work.

1.0.0
- Initial community release
- Interactive (PKCE + loopback), DeviceCode, ClientSecret, Certificate (X509/Thumbprint/Subject), AccessToken, ManagedIdentity flows
- Environment selection: Global, USGov, USGovDoD, China
- In-memory token cache by default; opt-in DPAPI-encrypted persistence via -PersistRefreshToken
- Pure PowerShell, no MSAL DLL hunting, no compiled C#

FileList

Version History

Version Downloads Last updated
1.3.0 0 5/25/2026
1.2.1 0 5/25/2026
1.2.0 0 5/25/2026
1.1.0 (current version) 0 5/25/2026
1.0.0 0 5/25/2026