Finding Members & Owners of an Office 365 Group or Microsoft Team

As Office 365 Groups and Microsoft Teams continues to explode in popularity, the ability to explore and control resources in large scale is becoming more apparent.  While there are some basic controls available, those specifically included in the Teams PowerShell Beta module leave a lot to be desired.  The Teams module currently only allows you to get information about Teams that you are actually in, thus very limited in the benefits to an administrator.

One of the tasks I have come across is the need to get a list of Teams, along with the members and owners of each.  While I haven’t found a solution to this ask specifically, I can offer an alternative which is to work with the members and owners of Office 365 Groups instead.  While this won’t show details for only Teams, it will include all Groups (which are required for a Team anyway).  Depending on how pretty you want the data to be, could throw together a little script but these examples should get you started:

List of all Groups:

Get-UnifiedGroup 

Details of a specific Group:

Get-UnifiedGroup -identity MyGroupNameHere 

List Owners of a Group:

Get-UnifiedGroupLinks -Identity MyGroupNameHere -LinkType owner 

List of Members of a Group:

Get-UnifiedGroupLinks -Identity MyGroupNameHere -LinkType member 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s