Get All User Groups in a Site Collection in SharePoint Online / Office 365

Requirement

This is another short blog on SharePoint Online .As I said previously, I just want to share my training experience on SharePoint 2013 and SharePoint Online. In this blog, I will show, how to get all available SharePoint Security Groups in a site of SharePoint online using PowerShell.

Syntax:

  • Connect to SharePoint Online by using the following PowerShell command. It takes the URL of our tenant admin and a username. Then it will ask for password.
    1. Connect-SPOService -Url https://moharanakirti-admin.sharepoint.com -Credential [email protected]  
  • Get all user Group in the provided site:
    1. Get-SPOSiteGroup -Site https://moharanakirti.sharepoint.com/sites/kirti  

Output:

After running the above cmdlets, we will see get all available SharePoint Security Groups in a site of SharePoint online as shown in following figures.



Hope this post will help. Thank you.