Can i use SPMT mapping 1 Group to more user?

Kun-J.S 1 Reputation point
2021-12-06T01:51:37.497+00:00

Hi,I try to use SPMT .CSV mapping 1 group to more user,
but always 1 group to 1 user,is this a limitation of itself?
this is my .CSV content.

group1 user1 TURE
group1 user2 TURE
group1 user3 TURE
group1 user4 TURE

only user4 mapping to the folder permissions.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author
Elsie Lu_MSFT 9,806 Reputation points
2021-12-06T07:46:46.93+00:00

Hi @Kun-J.S , welcome to Q&A forum!

Under normal circumstances, we do not use SPMT to add users to the group. You can add users on the UI, or you can add users through PowerShell.

============================

You could:

  1. Log in to the SharePoint Online site which you wish to add members, as an administrator.

On the site’s home page, click the Settings gear icon >> Choose Site permissions >> and then click on “Advanced Permissions Settings”. Alternatively, You can click on Settings >> Site Settings >> “Users and Permissions” link under “People and Groups” from anywhere else on the site.
155242-5.png

2.Using Powershell:

#Connection paramaters  
$AdminURL = "https://Crescent-admin.sharepoint.com/"  
$AdminName = "******@Crescent.com"  
$CSVFile="C:\UsersToAdd.csv"  
   
#User Names Password to connect  
$Password = Read-host -assecurestring "Enter Password for $AdminName"  
$Credential = new-object -typename System.Management.Automation.PSCredential -argumentlist $AdminName, $Password  
   
#Connect to SharePoint Online  
Connect-SPOService -url $AdminURL -credential $Credential  
   
#add multiple users to sharepoint online group powershell - Import Users from CSV  
Import-Csv $CSVFile | ForEach-Object { Add-SPOUser -Site $_.SiteURL -Group $_.GroupName -LoginName $_.UserAccount}  

Please refer to this blog for more information about how to add users to SharePoint groups:
SharePoint Online: PowerShell to Add User to Group

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.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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