Skip to content

Bug report: 'outlook calendar get' allows command execution without 'userId' or 'userName' #7249

@Saurabh7019

Description

@Saurabh7019

Priority

(Low) Something is a little off

Description

When running m365 outlook calendar get without specifying userId or userName, the command doesn't fail validation and tries to execute with an error:

Image

Steps to reproduce

  • log in and execute command m365 outlook calendar get without specifying either userId or userName

Expected results

The command should fail validation and tell that I need to specify either userId or userName. or, it should follow calendargroup-list pattern and allow execution without userId or userName

Actual results

Command executes and fails with "Error: The requested user 'undefined' is invalid."

Diagnostics

No response

CLI for Microsoft 365 version

v11.7.0-beta.ba78c1f

nodejs version

24.12.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions