Hi @Stephanie Dury ,
You can use PowerShell to create site columns in batches, but due to the differences in each column type, the creation will be somewhat different. Regarding your needs, I tested it and found that the people type site column cannot be created together:
#Config Variables
$SiteURL = "https://tenant.sharepoint.com/sites/sitename/"
$file = "C:\csvfile.csv"
#Get the CSV file
$csv = Import-CSV $file
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Interactive
ForEach($line in $csv)
{
#write-host $line.ColumnTitle
Try {
#Create Site Column
Add-PnPField -DisplayName $line.ColumnTitle -InternalName $line.InternalName -Group $line.ColumnGroup -Type $line.ColumnType
}
catch {
write-host "Error: $($_.Exception.Message)" -foregroundcolor Red
}
}
This blog contains all the site column types you need for your reference:
https://www.sharepointdiary.com/2016/12/sharepoint-online-create-site-column-using-powershell.html
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.