Cmdlets for Microsoft SharePoint

Build 24.0.9060

Scope Parameter (Connect-SharePoint Cmdlet)

The scope used for the OAuth flow to access data from the Application.

Syntax

Connect-SharePoint -Scope string

Possible Values

NONE, AllSites.Manage, AllSites.Read, AllSites.Write, .default

Data Type

cstr

Default Value

"NONE"

Remarks

The scope used for the OAuth flow to access data from the Application.

Note: If not specified or left to 'NONE', the cmdlet sets the default scope dependant upon OAuthGrantType. Defaults to 'AllSites.Manage' unless using JWT OAuth, Azure Service Principal, or CLIENT grant type. The available values are:

  • AllSites.Read: Enables reading custom lists
  • AllSites.Write: Enables reading & writing custom lists
  • AllSites.Manage: Enables reading, writing and creating custom lists
  • .default: Requests application permissions without a user context. All the application permissions that have been granted for that web API are included in the retrieved OAuthAccessToken.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060