Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

New-MgTeamChannelMember fails with "Parameter set cannot be resolved using the specified named parameters."

オープン
#3,471 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
powershell
領域
cli

調査の方向性

まず、PowerShell 5.1 または 7.4 で -TeamId、-ChannelId、-BodyParameters を指定して New-MgTeamChannelMember を再現し、その後、cmdlet が公開しているパラメーター セットを調べます。コマンドがドキュメントに記載された入力を受け付け、REST API の回避策を必要とせずにユーザーをプライベート チーム チャネルに追加できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Needs: Directive type:bug
Describe the bug

When running the command "New-MgTeamChannelMember" using PowerShell 5.1 or 7.4 we receive an error message.

Error:
Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.

This is also discussed in https://github.com/microsoftgraph/msgraph-sdk-powershell/discussions/3370

Module:
Microsoft.Graph.Teams v2.33.0

Expected behavior

Running the command should add the user to the private team channel.

How to reproduce
  1. Execute New-MgTeamChannelMember with the -TeamId, -ChannelId, and -BodyParameters
SDK Version

2.33.0

Latest version known to work for scenario above?

No response

Known Workarounds

One known workaround is to use the Graph REST API instead of the cmdlet New-MgTeamChannelMember

Debug output
Click to expand log ```
</details>


### Configuration

- OS: Windows Server 2019
- 64 bit
- PowerShell details
PS C:\Windows\system32> $PSVersionTable

Name                           Value                                                                                                                                                               
----                           -----                                                                                                                                                               
PSVersion                      5.1.17763.8024                                                                                                                                                      
PSEdition                      Desktop                                                                                                                                                             
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                             
BuildVersion                   10.0.17763.8024                                                                                                                                                     
CLRVersion                     4.0.30319.42000                                                                                                                                                     
WSManStackVersion              3.0                                                                                                                                                                 
PSRemotingProtocolVersion      2.3                                                                                                                                                                 
SerializationVersion           1.1.0.1   

Name                           Value
----                           -----
PSVersion                      7.4.13
PSEdition                      Core
GitCommitId                    7.4.13
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


### Other information

_No response_
主要言語
C#
スター
901
フォーク
232
平均マージ
1日 5時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoftgraph/msgraph-sdk-powershell のほかの issue

microsoftgraph/msgraph-sdk-powershell の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。