Skip to content

Bug report: teams channel member set has no teams channel id validation #3222

@milanholemans

Description

@milanholemans

Description

Right now it is possible to pass any value as --channelId option.

Steps to reproduce

Run m365 teams channel member set --teamId {teamId} --channelId "Invalid ID" --userName {userName} --role owner.

Expected results

Should show an error saying that the --channelId value is invalid.

Actual results

Graph error.

Diagnostics

No response

CLI for Microsoft 365 version

v5.2.0

nodejs version

v16.11.1

Operating system (environment)

Windows

Shell

Windows PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions