> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.accessorange.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Create multiple Unified Groups using CSV file

Articles on: [Scripts](/en/category/scripts-if12k0/)

This script is used to create unified groups(For Exchange) using a CSV file  
  
This script use CSV file which sould contain the following columns:  
  
-DisplayName: Name of the unified group  
  
-EmailAddresses: Emails of the Unified Groups  
  
-AccessType: Public or Private  
  
-Owner: Owner of the Unified Group  
  
-Members: Member of the Unified group (please see other article on our how to's section which explains how to add members in already present unified groups)   
  

## Script:

  
  
Install-Module -Name AzureAD  
  
Connect-AzureAD  
  
Install-Module -Name Msonline  
  
Connect-MsolService  
  
Import-Csv -Path "C:\Users\tv\Desktop\office365.csv" | foreach {  
  
New-UnifiedGroup -DisplayName $_.Name -EmailAddresses $_.UPN  -AccessType $_.Type -Owner $_.Owner -Members $_.Members}

Updated on: 31/01/2023