New-MgTeamChannelMember fails with "Parameter set cannot be resolved using the specified named parameters."
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- powershell
- Domínio
- cli
Direção de pesquisa
Comece reproduzindo New-MgTeamChannelMember com -TeamId, -ChannelId e -BodyParameters no PowerShell 5.1 ou 7.4 e, em seguida, inspecione quais conjuntos de parâmetros o cmdlet expõe. Considera-se concluído quando o comando aceita as entradas documentadas e adiciona um usuário a um canal privado de equipe sem exigir o workaround da REST API.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- 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_
- Linguagem predominante
- C#
- Estrelas
- 901
- Forks
- 232
- Merge médio
- 1d 5h
- PRs com merge (30d)
- 20
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoftgraph/msgraph-sdk-powershell
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
Mantenedores costumam responder em até 1 dia
-
status:waiting-for-triage type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
microsoftgraph/msgraph-sdk-powershell#3751 ·
Mantenedores costumam responder em até 1 dia
-
status:waiting-for-triage type:bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
microsoftgraph/msgraph-sdk-powershell#3772 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
microsoftgraph/msgraph-sdk-powershell#3749 ·
Mantenedores costumam responder em até 1 dia
-
status:waiting-for-triage type:bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
microsoftgraph/msgraph-sdk-powershell#3741 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de microsoftgraph/msgraph-sdk-powershell
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
NethermindEth/nethermind#14012 ·
Mantenedores costumam responder em até 1 dia
-
dependencies Status: Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
json-schema-org/website#2518 ·
Mantenedores costumam responder em até 1 dia
-
agentic-workflows
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
builtbybel/Flyoobe#498 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
builtbybel/CrapFixer#112 ·