Bug report: teams channel member add doesn't support shared channels
Open
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
- Create a shared channel
- Call
m365 teams channel member addand specify your channel ID - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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