The Teams Chat Discovery is giving error mentioned below: Request failed with Forbidden status code (Forbidden). {"error":{"code":"UnknownError","message":"{\"error\":{\"code\":\"S2SUnauthorized\",\"message\":\"Invalid permission.\"}}","innerError":{"date":"2022-11-28T10:59:31","request-id":"daa6f1e1-8edb-4873-acb2-0c77accfcbb","client-request-id":"daa77f17e1-abctedb-473-acb2-0c9accaec5b"}}}
原因
Tenants are missing necessary Teams permissions in ODM Tenant Consents section.
解决办法
Perform the following: - Access each tenant in ODM UI | click Edit Consents - scroll to Migration, Teams section - if there's a blue check mark, regrant the Teams consent