pnp / pnp/cli-microsoft365

Bug report: teams channel member add doesn't support shared channels

Open
#7,132 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
TypeScript
Stars
1.5k
Forks
413
Avg merge
5d 6h
Merged PRs (30d)
21

Description

Priority

(Low) Something is a little off

Description

The Microsoft Graph API supports adding members to a shared channel but the validation within the M365 CLI short circuits if it is not a private channel only.

Steps to reproduce
  1. Create a shared channel
  2. Call m365 teams channel member add and specify your channel ID
  3. Note the response fails
Expected results

The member should be added to the shared channel

Actual results
{"error":"The specified channel is not a private channel"}
Diagnostics

No response

CLI for Microsoft 365 version

v11.4.0

nodejs version

v25.6.0

Operating system (environment)

macOS

Shell

zsh

cli doctor

No response

Additional Info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation and validation for m365 teams channel member add, then reproduce the command against a shared channel using the channel ID. Compare the validation with Microsoft Graph's support for shared-channel membership; done means the member is added without the private-channel error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.