Cmdlets for Microsoft SharePoint

Build 24.0.9175

OAuthGrantType Parameter (Connect-SharePoint Cmdlet)

Specifies the grant type for the chosen OAuth flow. This value should be the same as the grant_type that was set during OAuth custom application creation.

Syntax

Connect-SharePoint -OAuthGrantType string

Possible Values

CODE, PASSWORD, SAML_1, CLIENT

Data Type

cstr

Default Value

"CODE"

Remarks

In most cases, the default grant type should not be modified. For information about the most common OAuth grant types and the trade-offs between them, see https://oauth.net/2/grant-types/.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 24.0.9175