A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Yes. Use SharePoint groups plus either the UI (for smaller batches) or PowerShell with CSV (for thousands of users).
- Add users via the SharePoint site (good for smaller batches)
- On the target SharePoint site, open the Site Actions menu and select Site Settings.
- Under Users and Permissions, select People and Groups.
- In the left navigation, select Groups and choose the visitors group (for example, [Site Name] Visitors).
- On the menu bar, select the arrow next to New, then select Add Users.
- In Users/Groups, paste or type user accounts separated by semicolons.
- For domain accounts, use
DOMAIN\aliasformat and select Check Names.
- For domain accounts, use
- Select OK to add them as visitors.
This works but is cumbersome for thousands of users.
- Bulk-add thousands of users with PowerShell and CSV (recommended)
For ~3,800 users, use SharePoint Online PowerShell with CSV files:
- Create a CSV file (for example,
Users.csv) with headers:
Each row defines which user goes into which group on which site, for example:Group,LoginName,SiteSite Visitors,******@contoso.com,https://tenant.sharepoint.com/sites/YourSite Site Visitors,******@contoso.com,https://tenant.sharepoint.com/sites/YourSite - (Optional) If the visitors group does not exist yet, create another CSV (for example,
GroupsAndPermissions.csv) with headers:
Example row:Site,Group,PermissionLevelshttps://tenant.sharepoint.com/sites/YourSite,Site Visitors,Read - Use PowerShell to create groups (if needed) and add users:
Import-Csv C:\O365Admin\GroupsAndPermissions.csv | ForEach { New-SPOSiteGroup -Group $_.Group -PermissionLevels $_.PermissionLevels -Site $_.Site } Import-Csv C:\O365Admin\Users.csv | ForEach { Add-SPOUser -Group $_.Group -LoginName $_.LoginName -Site $_.Site }
This approach is designed specifically to automate adding large lists of users and groups to SharePoint sites and is appropriate for thousands of site visitors.
References: