Link to home
Start Free TrialLog in
Avatar of Joel Parmer
Joel ParmerFlag for United States of America

asked on

List of users in a group that are not assigned a particular Office 365 license?

How can I get a list of users in an AD Security group that are not assigned a particular Office 365 license?

I know I can assign a license to a group like below, and deal with the failures from users that already have the license but it's extremely inefficient.  Any help to filter my result set would be helpful!

Get-MsolGroupMember -All -groupObjectid <GUID> | Set-MsolUserLicense -AddLicenses "STANDARDWOFFPACK_IW_STUDENT"
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joel Parmer

ASKER

This comment got me close.  Thanks for all your help!