Closed Martell17 closed 13 hours ago
Hey!
I believe this is caused by https://github.com/pnp/powershell/discussions/4249. The tenant this application was using was deleted. I'm looking into workarounds.
Could you try .\Get-MicrosoftTeamsChat.ps1 -clientId 7f586887-37d3-4d1f-89cf-153c7d1bbe54
?
That client Id is an app I've created in my tenant.
This seems to work within my tenant. Unfortunately I don't have multiple tenants so I can't test multitenant functionality.
Resolved. I've created a new Azure App, copied all the necessary permissions from the old app (you still can find it under the Enterprise Apps, it's name is PnP management shell) to the new one, and then set the Allow public client flows switch to Yes (https://stackoverflow.com/questions/45609432/how-do-i-resolve-the-error-aadsts7000218-the-request-body-must-contain-the-foll).
Then change the following parameters in Get-MicrosoftTeamsChat.ps1 file: $clientId = "my_new_app_guid" $tenantId = "my_tenant_id"
It worked!
i've switched the default client id over to my application. if anyone has any related issues, this can be reopened.
Last week I successfully used this beautiful export-ms-teams-chats script to download my Teams chats without any issues. Now I need to download my chats again, but I can not do it because of the error:
I checked from the same PC I have successed to run it from, from different computers, different locations, and also asked my coworkers who use the same Teams organization. The error message is the same in all the cases.
Also, I tried to run it like this (found my Tenant ID in Azure Portal)
but I failed to find what Client ID should I put there. If I put random Azure app ID from the Azure Portal, I got the next error:
Please help.