List signed-in blocked users in Office 365.

nav2567
nav2567 used Ask the Experts™
on
Hello,

May someone advice how to list all "signed-in blocked" users and their Office 365 license type and UPN names?

Thanks,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
Try something like this:

Get-MsolUser -EnabledFilter DisabledOnly | select UserPrincipalName,@{n="Licenses";e={$_.licenses.AccountSkuId -join ";"}}

Open in new window

Top Expert 2016

Commented:
If they are 'blocked' how can they sign in?  Or do you want users that don't have a valid subscription?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial