Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 34 additions & 16 deletions sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ online version: https://learn.microsoft.com/powershell/module/sharepoint-online/
applicable: SharePoint Online
title: Connect-SPOService
schema: 2.0.0
author: trent-green
ms.author: trgreen
author: ShreyasSar26
ms.author: shsaravanan
ms.reviewer:
---

Expand All @@ -20,22 +20,23 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run.
## SYNTAX

### AuthenticationUrl

```powershell
Connect-SPOService -AuthenticationUrl <String> [-ClientTag <String>] [-Credential <CredentialCmdletPipeBind>]
-Url <UrlCmdletPipeBind> -ModernAuth <Boolean> [<CommonParameters>]
```
Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-Credential] <CredentialCmdletPipeBind>]
[[-ClientTag] <String>] [-AuthenticationUrl] <String> [[-ModernAuth] <Boolean>]
[[-UseSystemBrowser] <Boolean>] [<CommonParameters>]
```

### AuthenticationLocation

```powershell
Connect-SPOService [-ClientTag <String>] [-Credential <CredentialCmdletPipeBind>]
[-Region <AADCrossTenantAuthenticationLocation>] -Url <UrlCmdletPipeBind> [<CommonParameters>]
```
Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-Credential] <CredentialCmdletPipeBind>]
[[-ClientTag] <String>] [[-Region] <AADCrossTenantAuthenticationLocation>] [[-ModernAuth] <Boolean>]
[[-UseSystemBrowser] <Boolean>] [<CommonParameters>]
```

## DESCRIPTION

The `Connect-SPOService` cmdlet connects a SharePoint Online administrator to the SharePoint Online Administration Center.
The `Connect-SPOService` cmdlet connects the SharePoint Online administrator or the SharePoint Embedded administrator to the SharePoint Online Administration Center.
Comment thread
ShreyasSar26 marked this conversation as resolved.
Copy link
Copy Markdown
Contributor

@samkabue samkabue Jun 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

administrator

"Administrator" (uppercase "A")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update other places too


Only a single SharePoint Online service connection is maintained from any single Windows PowerShell session.
In other words, this is a per-geo within an organization administrator connection.
Expand All @@ -44,7 +45,7 @@ The Windows PowerShell session will be set to serve the new SharePoint Online ad

A delegated partner administrator has to swap connections for different organizations within the same Windows PowerShell session.

You must be a SharePoint Online administrator to run the cmdlet.
You must be a SharePoint Online administrator or a SharePoint Embedded administrator to run the cmdlet.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](https://learn.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps).
Comment thread
ShreyasSar26 marked this conversation as resolved.

Expand Down Expand Up @@ -92,6 +93,13 @@ Connect-SPOService -Credential $creds -Url https://tenant-admin.sharepoint.com -
```
Connecting to SPO Service with ModernAuth Flag.

### -----------------------EXAMPLE 6-----------------------------

```powershell
Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true
```
Authenticates using the Microsoft Authentication Library (MSAL) and connects to the SharePoint Online Administration Center on successful authentication.

## PARAMETERS

### -AuthenticationUrl
Expand Down Expand Up @@ -200,16 +208,26 @@ Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -UseSystemBrowser

### CommonParameters
Used to authenticate the user using the Microsoft Authentication Library (MSAL).

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
```yaml
Type: Boolean
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

## INPUTS
### CommonParameters

## OUTPUTS
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

Comment thread
ShreyasSar26 marked this conversation as resolved.
## NOTES

## RELATED LINKS

Expand Down