Remove-SPOUserInfo

Removes user from user information list of specific site collection.

Syntax

Remove-SPOUserInfo
      -LoginName <String>
      -Site <SpoSitePipeBind>
      [<CommonParameters>]

Description

Can be used to remove user from user information lists of the specific site collections.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at https://go.microsoft.com/fwlink/p/?LinkId=251832 (https://go.microsoft.com/fwlink/p/?LinkId=251832).

Examples

------------ Example 1 --------------------

Remove-SPOUserInfo -LoginName joe.healy@contoso.com -Site https://contoso.sharepoint.com/sites/sc1

Example 1 removes a user who has the e-mail address joe.healy@contoso.com from the user information list of https://contoso.sharepoint.com/sites/sc1 site collection.

Parameters

-LoginName

Specifies the login name of the user to removed from user information list.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-Site

Specifies the URL of the site collection.

Type:SpoSitePipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online