Link to home
Start Free TrialLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

Import UPNs to an Office 365 Group.

Hello,

I have a CSV file which contains list of UPNs.  I need to populate all the UPNs to an Office 365 Group.

Would someone advise how to do this?

I used to be able to use the below if the group is a distribution group.  I need some help to do the same for Office 365 Group.  

import-csv "user.csv" | foreach {add-distributiongroupmember -identity mailgroup -member $_.UPN}

Thanks.
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