Tuesday, April 21, 2020

How to view Msol User Groups in Powershell

Sometimes th administrator needs to know which groups the Office 365 user is member of.
You can use the command Get-MsolUserGroup to resolve this issue.

Installtion
Install-Module -Name Microsoft365.Toolbox

Usage
Import-Module ActiveDirectory.Toolbox

Commands
Get-MsolUserGroup [-UserPrincipalName]





Note:
#Requires -Modules MSOnline

No comments:

Post a Comment