Skip to content

Commit 4a7608e

Browse files
Merge pull request #916 from MicrosoftDocs/main
[AutoPublish] main to live - 06/17 15:33 PDT | 06/18 04:03 IST
2 parents 1590e33 + 4882613 commit 4a7608e

File tree

1 file changed

+34
-16
lines changed

1 file changed

+34
-16
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ online version: https://learn.microsoft.com/powershell/module/sharepoint-online/
55
applicable: SharePoint Online
66
title: Connect-SPOService
77
schema: 2.0.0
8-
author: trent-green
9-
ms.author: trgreen
8+
author: ShreyasSar26
9+
ms.author: shsaravanan
1010
ms.reviewer:
1111
---
1212

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

2222
### AuthenticationUrl
23-
24-
```powershell
25-
Connect-SPOService -AuthenticationUrl <String> [-ClientTag <String>] [-Credential <CredentialCmdletPipeBind>]
26-
-Url <UrlCmdletPipeBind> -ModernAuth <Boolean> [<CommonParameters>]
23+
```
24+
Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-Credential] <CredentialCmdletPipeBind>]
25+
[[-ClientTag] <String>] [-AuthenticationUrl] <String> [[-ModernAuth] <Boolean>]
26+
[[-UseSystemBrowser] <Boolean>] [<CommonParameters>]
2727
```
2828

2929
### AuthenticationLocation
3030

31-
```powershell
32-
Connect-SPOService [-ClientTag <String>] [-Credential <CredentialCmdletPipeBind>]
33-
[-Region <AADCrossTenantAuthenticationLocation>] -Url <UrlCmdletPipeBind> [<CommonParameters>]
31+
```
32+
Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-Credential] <CredentialCmdletPipeBind>]
33+
[[-ClientTag] <String>] [[-Region] <AADCrossTenantAuthenticationLocation>] [[-ModernAuth] <Boolean>]
34+
[[-UseSystemBrowser] <Boolean>] [<CommonParameters>]
3435
```
3536

3637
## DESCRIPTION
3738

38-
The `Connect-SPOService` cmdlet connects a SharePoint Online administrator to the SharePoint Online Administration Center.
39+
The `Connect-SPOService` cmdlet connects the SharePoint Online administrator or the SharePoint Embedded administrator to the SharePoint Online Administration Center.
3940

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

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

47-
You must be a SharePoint Online administrator to run the cmdlet.
48+
You must be a SharePoint Online administrator or a SharePoint Embedded administrator to run the cmdlet.
4849

4950
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).
5051

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

96+
### -----------------------EXAMPLE 6-----------------------------
97+
98+
```powershell
99+
Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true
100+
```
101+
Authenticates using the Microsoft Authentication Library (MSAL) and connects to the SharePoint Online Administration Center on successful authentication.
102+
95103
## PARAMETERS
96104

97105
### -AuthenticationUrl
@@ -200,16 +208,26 @@ Default value: False
200208
Accept pipeline input: False
201209
Accept wildcard characters: False
202210
```
211+
### -UseSystemBrowser
203212
204-
### CommonParameters
213+
Used to authenticate the user using the Microsoft Authentication Library (MSAL).
205214
206-
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).
215+
```yaml
216+
Type: Boolean
217+
Parameter Sets: (All)
218+
Aliases:
219+
Applicable: SharePoint Online
220+
Required: False
221+
Position: 5
222+
Default value: None
223+
Accept pipeline input: False
224+
Accept wildcard characters: False
225+
```
207226
208-
## INPUTS
227+
### CommonParameters
209228
210-
## OUTPUTS
229+
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).
211230
212-
## NOTES
213231
214232
## RELATED LINKS
215233

0 commit comments

Comments
 (0)