Export (0) Print
Expand All

Set-SPOUser

 

Applies to: SharePoint Online, Office 365

Topic Last Modified: 2013-12-18

Configures properties on an existing user.

Set-SPOUser [-Site] <SpoSitePipeBind> [-LoginName] <String> [-IsSiteCollectionAdmin] <$true | $false>

Use the Set-SPOUser cmdlet to configure properties of an existing user. That is, to add or remove a user as a SharePoint Online site collection administrator.

You must have the SharePoint Online global administrator permission to run the cmdlet.

 

Parameter Required Type Description

Site

Required

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Specifies the full URL of the site collection. It must be in a valid managed path in the company’s site.

LoginName

Required

System.String

Specifies the user name.

IsSiteCollectionAdmin

Required

System.Boolean

Specifies whether the user is a site collection administrator.

--------EXAMPLE--------

Set-SPOUser -Site https://contoso.sharepoint.com/sites/marketing -LoginName melissa.kerr@contoso.com -IsSiteCollectionAdmin $true 

This example makes melissa.kerr@contoso.com a SharePoint Online site collection administrator on https://contoso.sharepoint.com/sites/marketing.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft