Remove-PnPUserInfo
SYNOPSIS
Required Permissions
- SharePoint: Access to the SharePoint Tenant Administration site
Removes a user from the user information list of a specific site collection.
SYNTAX
Remove-PnPUserInfo -LoginName <String> [-Site <String>]
DESCRIPTION
Removes user information from the site user information list.
EXAMPLES
EXAMPLE 1
Remove-PnPUserInfo -LoginName user@domain.com -Site "https://yoursite.sharepoint.com/sites/team"
This removes a user who has the e-mail address user@domain.com from the user information list of https://contoso.sharepoint.com/sites/team site collection.
PARAMETERS
-LoginName
Specifies the login name of the user to remove.
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Site
Specifies the URL of the site collection.
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False