From 3378b5cc3d5a7dc239933156a1ee21292ce6ad2a Mon Sep 17 00:00:00 2001 From: AdminDroid <49208841+admindroid-community@users.noreply.github.com> Date: Mon, 17 Jul 2023 15:53:58 +0530 Subject: [PATCH] Export Microsoft 365 Group Report Export Microsoft 365 Group Report --- Microsoft 365 Group Report/M365GroupReport.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Microsoft 365 Group Report/M365GroupReport.ps1 b/Microsoft 365 Group Report/M365GroupReport.ps1 index 2d488f6..1b6552d 100644 --- a/Microsoft 365 Group Report/M365GroupReport.ps1 +++ b/Microsoft 365 Group Report/M365GroupReport.ps1 @@ -1,8 +1,8 @@ <# ============================================================================================= Name: Microsoft 365 Group Report -Description: This script exports Microsoft 365 groups and their membership to CSV -Version: 1.0 +Description: This script exports Microsoft 365 groups and their membership to CSV using Microsoft Graph PowerShell +Version: 3.0 website: o365reports.com Script by: O365Reports Team For detailed Script execution: https://o365reports.com/2021/02/11/export-microsoft-365-group-report-to-csv-using-powershell @@ -182,8 +182,7 @@ Function main() } } Write-Host "Connecting to Microsoft Graph..." - $Scopes = @( - "Group.Read.All" + $Scopes = @("Directory.Read.All" ) #Storing credential in script for scheduling purpose/ Passing credential as parameter $Error.Clear()