2

I need to perform a bulk delete for multiple users in the SharePoint site collection using PowerShell Script!

1 Answer 1

3

First, you should specify which users should you delete

Second, you can for each user in the user list as the following:

$usersToDelete = @()

foreach ($user in $usersToDelete)
{
    $Site.RootWeb.SiteUsers.Remove($user);
}

Check the full script at Delete Users from SharePoint Site Collection using PowerShell


See also

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.