add members in bulk to Mail enabled security group

Aran Billen 766 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

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,769 questions
Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,492 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 104.3K Reputation points MVP
    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 }
    

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.