Set OneDrive Connection Settings

Creates and validates the OneDrive connection settings. Produces PAWOffice365OneDriveConnectionSettings.

If TargetUserEmail is empty, the OneDrive of the authenticated user ('me') is used.


⬅️INPUT

Parameter

Type

Required

Description

TenantId

String

✅Yes

Azure AD tenant ID

ClientId

String

✅Yes

Application (client) ID (GUID)

ClientSecret

SecureString

❌No

Application secret (required if there is no Username)

Username

String

❌No

User name (ROPC flow)

Password

SecureString

❌No

User password (required if Username is set)

TargetUserEmail

String

❌No

Target OneDrive user; 'me' if empty


➡️OUTPUT

Parameter

Type

Description

IsSetPAWOffice365OneDriveConnectionSettingsSuccessful

Boolean

Operation success status

SetPAWOffice365OneDriveConnectionSettingsMessage

String

Status/error message

SetPAWOffice365OneDriveConnectionSettingsResult

PAWOffice365ConnectionSettings

OneDrive connection settings


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".