S
SharePoint Online Management Shell
Details
- URL
-
https://{tenant}-admin.sharepoint.com - Command
-
Connect-SPOService - Docs
- https://learn.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/connect-sharepoint-online
Authentication
Microsoft Entra ID app registration for SharePoint/Microsoft 365 APIs
$ Connect-SPOService -Url https://<tenant>-admin.sharepoint.com -ClientId <app-id> -TenantId <tenant-id> -CertificatePath <path> [-CertificatePassword <password>] + Microsoft Entra ID app registration for SharePoint/Microsoft 365 APIs $ Connect-SPOService -Url https://<tenant>-admin.sharepoint.com -ClientId <app-id> -TenantId <tenant-id> -CertificatePath <path> [-CertificatePassword <password>] -CertificateThumbprint <thumbprint> discovered Create an app registration in Microsoft Entra admin center / Azure portal. Add the SharePoint or Microsoft Graph API permissions your integration needs and grant admin consent. For app-only access, create a client secret or upload a certificate under the app's credentials. Microsoft Learn pages for SharePoint app access point to creating an Azure application and adding SharePoint permissions such as Sites.Read.All or Sites.FullControl.All: Configure Azure app with SharePoint access, How to Register an App in Microsoft Entra ID.