Official Site

Konstantinos Boutsioulis

Microsoft Most Valuable Professional M365 Apps & Services

Microsoft Most Valuable Professional Business Applications

Consultant & Sr Cloud Solution Architect Modern Wokrplace

Free Material

Find hereMore than 150 Articles about Microsoft Technologies on Modern Workplace

Get Groups information for SharePoint Online site collection using PowerShell

19 August 2023

In today's article I will show you how easy it is to get information about groups that have permissions with a SharePoint page Using powershell we can get information about the groups that have permission to a collection site and even the type of role they have on that site We run the following PowerShell with run permissions as administrator and we have

Code In PnP

# Declare Variables

$Sites = "https://mytenant-admin.sharepoint.com"

#Connect with SharePoint Online to your tenant

Connect-SPOService -Url $Sites

#Execute get information about groups

Get-SPOSiteGroup -Site https://mytenant.sharepoint.com/

More information about finding groups in specific site collections using powershell on the official Microsoft website at

Microsoft Learn - Documentation - Get-SPOSiteGroup

#SharePoint #technology #microsoft #PowerShell #PnP #digitaltransformation #cloud #mvpbuzz #m365