The issues with ms teams node

{
“errorMessage”: “The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.”,
“errorDetails”: {
“rawErrorMessage”: [
“The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.”
],
“httpCode”: “EAUTH”
},
“n8nDetails”: {
“nodeName”: “Create chat message”,
“nodeType”: “n8n-nodes-base.microsoftTeams”,
“nodeVersion”: 2,
“resource”: “chatMessage”,
“operation”: “create”,
“time”: “20:35:53 24/9/2025”,
“n8nVersion”: “1.108.1 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeApiError: The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.”,
" at ExecuteContext.microsoftApiRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/Microsoft/Teams/v2/transport/index.ts:51:9)“,
" at processTicksAndRejections (node:internal/process/task_queues:105:5)”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/Microsoft/Teams/v2/actions/chatMessage/create.operation.ts:87:9)“,
" at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/Microsoft/Teams/v2/actions/router.ts:59:21)”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/Microsoft/Teams/v2/MicrosoftTeamsV2.node.ts:29:10)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_5aee33ef851c7de341eb325c6a25e0ff/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1212:9)”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_5aee33ef851c7de341eb325c6a25e0ff/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1582:27",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_5aee33ef851c7de341eb325c6a25e0ff/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2158:11"
]
}
}

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Usually means that the authentication is incorrect or incomplete, or a required field is missing in the node.

:white_check_mark: Things to check:

  1. Authentication:

    • Re-authenticate your Microsoft Teams credentials in n8n.

    • Make sure the connected user has permission to send messages in the target chat/team.

  2. Node fields:

    • Double-check that all required fields (like Chat ID or Message Content) are filled and valid.

    • If you’re using expressions, confirm they return the expected values.

  3. API limitations:

    • Some Teams APIs only allow messaging in 1:1 chats or certain scopes, make sure the chat you’re targeting is supported.

If it’s still failing, try simplifying the message (e.g., plain text only) to rule out formatting issues.

i use the account that is provided by my company, so when i create ms teams credentials, i get a notification like Need admin approval, Contact an administrator who can grant permissions to this application on your behalf.
So i contacted to admin to grant permissions involve ms team :chat.readwrite, user.read,…
however, i still get that issue
i don’t know how to troubleshoot that issue
can you help me? thank you very much.

Thanks for the extra info!
Since you’re using a company MS Teams account and saw the “Need admin approval” message, it’s very likely that:

The OAuth app still doesn’t have the correct API permissions granted with admin consent , even if the scopes like Chat.ReadWrite and User.Read were requested.
To troubleshoot:

  1. Confirm with your admin that the consent was granted on behalf of the organization, not just for a single user.

    • The app must show as “approved” under Azure AD → Enterprise Applications.

    • Permissions like Chat.ReadWrite must be listed and granted.

  2. In n8n:

    • Delete the current MS Teams credential.

    • Recreate it after admin approval, so it picks up the new permissions.

  3. Test with a simpler operation, like reading your own user profile, to confirm the token works before trying to send messages.

If it’s still not working, feel free to share:

  • Which operation you’re trying (send to chat, send to channel, etc.)

  • Whether you’re using a chat ID, user ID, or channel ID

i’m trying to send to chat, but when i choose the chat that i will send my message, i can’t find any chat from list, so i get the id chat end paste it on the By ID blank
I’m sure that admin granted consent needed permission.

Thanks! If chats aren’t showing in the list, even after admin consent, it likely means your account doesn’t have permission to list chats.

:white_check_mark: Try this:

  • Use the userId instead of the chatId if it’s a 1:1 chat.

  • Make sure your account is part of the chat you’re sending to.

  • Test the “List Chats” operation, if it returns nothing, your access is still limited.

Your admin may need to grant extra permissions like Chat.Read.All or Chat.ReadBasic.All with tenant-wide consent.

thank you so much, i will try to contact admin at tomorrow.

1 Like

i understand your answer that the api permission is application permission, not delegated ??

Yes, First confirm the access with your admin if already have then share the API request with (header,body,URL,etc) for further clarification

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.