Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 451 Bytes

File metadata and controls

17 lines (11 loc) · 451 Bytes

GraphToolkit

Microsoft Graph Toolkit

Use Get-AutRefreshToken to request a token from Microsoft Graph API. Needed to perform this task are the following 3 values: AppId AppSecret TenantId

These values can be found on your application in Azure.

$Token = Get-AutRefreshToken -AppId $AppId -appSecret $AppSecret -tenantId $TenantId

Example on how to query Graph Api for all Users.

Connect-AutGraph -Endpoint "Users" -Access_token $Token -All Yes