add members in bulk to Mail enabled security group

Aran Billen 941 Reputation points
2024-09-13T11:24:01.06+00:00

Hi all,

Is there a way to add bulk users into a mail enabled security group and if so does any one have some guidance on this

Thanks

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Microsoft 365 and Office Install, redeem, activate For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2024-09-13T15:43:18.1366667+00:00

    You can easily do this via PowerShell. Let's say you have a CSV file with the members, referenced by their UPN value. The following cmdlet can be used to add all users listed in the CSV to a given group:

    Import-Csv blabla.csv | % { Add-DistributionGroupMember MESG -Member $_.UPN -BypassSecurityGroupManagerCheck }
    
    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.