Skip to content

A PowerShell Module to interact with Microsoft Office 365 Graph API

License

Notifications You must be signed in to change notification settings

despingu/GraphPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GraphPS

A PowerShell Module to interact with Microsoft Office 365 Graph API

Quickstart

To use this module, you'll first need to register a new application in your Azure AD and get an app secret for it. You can read this article for instruction on how to do that. Keep in mind, that you also need to give your registred app permissions to access Graph.

Now download the repository and use this code snippet to test it:

$appId = "your-app-id"
$appSecret = "yourappsecret"
$TenantName = "yourtenant.onmicrosoft.com"

Import-Module "path-to-module\GraphPS.psd1"
Connect-GraphPS -TenantName $TenantName -AppID $appId -AppSecret $appSecret -Version beta
Get-GraphPSConnectionInfo
Get-GraphPSUsers -filterExpression "userType eq 'Guest'"

About

A PowerShell Module to interact with Microsoft Office 365 Graph API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published