powershellmicrosoft-graph-apimicrosoft-graph-sdksmicrosoft-graph-teams

Why does the Set-CsTeamsSettingsCustomApp cmdlet return a MethodNotAllowed response?


I'm using the Set-CsTeamsSettingsCustomApp PowerShell cmdlet, which is part of the Microsoft Teams PowerShell module. Documentation for this cmdlet is available here. I'm using version 7.2.0 of the module and I'm running the cmdlet from PowerShell version 7.5.2 on Windows 11.

I'm doing interactive authentication using a global admin of my Tenant and I'm running the following command:

Set-CsTeamsSettingsCustomApp -isSideloadedAppsInteractionEnabled $True

The cmdlet execution returns this error:

The server responded with a Request Error, Status: MethodNotAllowed

The error seems to come from an internal of the cmdlet named Set-CsTeamsSettingsCustomApp_SetExpanded at line 2386.

Here is an image of the exact error that I get in my terminal:

enter image description here

It is important to note that the corresponding Get-CsTeamsSettingsCustomApp cmdlet works fine for the very same tenant. I've tried to execute the Set- cmdlet on other tenants and I get the very same error, so my understanding is that this is a Microsoft error at the cmdlet level. Moreover, the very same Set cmdlet used to work one month ago on the very same tenant by authenticating with the very same user.

Is this a known issue of this specific cmdlet?


Solution

  • Version 7.3.0 of the module fixed this bug. You can also verify this from the official release notes for version 7.3.0 of the module.