Cmdlets for Microsoft Office 365

Build 25.0.9539

DefaultUser Parameter (Connect-Office365 Cmdlet)

Determines whether to use the /me or /users endpoint for user authentication.

Syntax

Connect-Office365 -DefaultUser string

Possible Values

AllUsers, CurrentUser

Data Type

cstr

Default Value

"CurrentUser"

Remarks

Determines whether to use the /me or /users endpoint for user authentication.

Supported values are:

  • CurrentUser: Uses the /me endpoint for user authentication.
  • AllUsers: Uses the /users endpoint for user authentication.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9539