telstrapurple / MSTeamsChatExporter

Code that helps an end-user export their Microsoft Teams Chat History to HTML
MIT License
45 stars 10 forks source link

Error while executing the powershell script #8

Open rahulsnc3it opened 7 months ago

rahulsnc3it commented 7 months ago

image

We are trying to execute the command and getting below error, we have created Azure AD app with User.Read, Chat.Read and User.ReadBasic.All delegated permissions.

Also it gives URL to login with device code after successful login it throws below error

Error: Invoke-RestMethod: { "error": "invalid_client", "error_description": "AADSTS7000218: The request body must contain the following parameter: \u0027client_assertion\u0027 or \u0027client_secret\u0027. Trace ID: 8c3a5e4e-2180-4483-8b05-2364b9543700 Correlation ID: be11d035-cc0a-4fee-afe0-7e3eb7142ac7 Timestamp: 2024-02-21 09:51:03Z", "error_codes": [ 7000218 ], "timestamp": "2024-02-21 09:51:03Z", "trace_id": "8c3a5e4e-2180-4483-8b05-2364b9543700", "correlation_id": "be11d035-cc0a-4fee-afe0-7e3eb7142ac7", "error_uri": "https://login.microsoftonline.com/error?code=7000218" }

ctmort94 commented 3 months ago

Hey there. I needed a tool like this internally for some legal stuff, and I ran into this issue as well. Passing in the secret key did nothing.

Searching online for a resolution came pretty quickly afterwards so I thought I'd post it here in case someone comes across this in the future.

You need to enable Allow public client flows within the app registration authentication.

image