For feature requests, please see: https://mattermost.com/suggestions/.
For troubleshooting questions, please post in the following format:
Summary
I am getting this error when trying to setup the MS Teams sync plugin, I have followed the instructions in the documentation link here MS Teams sync plugin instructions, I am using the evaluation mode for the api to test this plugin currently.
"AADSTS700016: Application with identifier ‘ID’ was not found in the directory ‘OR’. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.
Steps to reproduce
I am currently on version 9.0 with the omnibus installation
Expected behavior
I am getting multiple errors for all the Teams permissions that I have set for the application to access our MS Teams instance
Observed behavior
This error is the same for each permission that the mm server is trying to access for our MS Teams instance in 365, I have replaced the azure ID’s with just the word ID, and the name of the ID ex " nTraceID" etc.
{
“caller”: “app/plugin_api.go:980”,
“error”: “code: , message: ClientSecretCredential authentication failed\nPOST https://login.microsoftonline.com/ID/oauth2/v2.0/token\n--------------------------------------------------------------------------------\nRESPONSE 400 Bad Request\n--------------------------------------------------------------------------------\n{\n "error": "unauthorized_client",\n "error_description": "AADSTS700016: Application with entifier ‘ID’ was not found in the directory ‘OR’. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.\r\nTrace : nTraceID\r\nCorrelation : nCorrelationID\r\nTimestamp: 2023-10-03 22:29:00Z",\n "error_codes": [\n 700016\n ],\n "timestamp": "2023-10-03 22:29:00Z",\n "trace_": "nTraceID",\n "correlation_": "nCorrelationID",\n "error_uri": "https://login.microsoftonline.com/error?code=700016\”\n}\n--------------------------------------------------------------------------------\nTo troubleshoot, visit Bing",
“level”: “error”,
“msg”: “Unable to fetch subscriptions from MS Teams”,
“plugin_”: “com.mattermost.msteams-sync”,
“timestamp”: “2023-10-03 15:29:00.136 -07:00”
}
I am using the tenant ID and client ID from the app registrations page in our azure directory