Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-SPOUser

Set-SPOUser

microsoft.online.sharepoint.powershell.dll, microsoft.online.sharepoint.powershell-1.dll

Synopsis

Configures properties on an existing user.

Syntax

Set-SPOUser [-Site] [-LoginName] [-IsSiteCollectionAdmin] [<CommonParameters>]

Detailed Description

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.

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

Parameters

-Site <SpoSitePipeBind>

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

Aliases

None

Required?

True

Position

2

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-LoginName <String>

Specifies the user name.

Aliases

None

Required?

True

Position

3

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-IsSiteCollectionAdmin <$true | $false>

Specifies whether the user is a site collection administrator.

Aliases

None

Required?

True

Position

4

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

Input Type

Return Type

Notes

None

Examples

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

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

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

Introduction to the SharePoint Online management shell
Set up the SharePoint Online Management Shell Windows PowerShell environment
Get-SPOUser