Describe the problem/error/question
I am trying to create a chat workflow, that will initiate a chat whenever a new ticket arrives in the queue. However, instead of using my user profile, I want to user a service account instead. The service account is fully interactive however, when I try to switch the credentials on a generic Microsoft OAuth2 API
Edit: after further review I found that the app registration did not have the requisite delegated permission called user.read.all, there is a node in the workflow which checks the user status before initiating the call and that graph call was failing.
credential it does not seem to work and gives the following error:
What is the error message (if any)?
{
"errorMessage": "Forbidden - perhaps check your credentials?",
"errorDescription": "Insufficient privileges to complete the operation.",
"errorDetails": {
"rawErrorMessage": [
"403 - \"{\\\"error\\\":{\\\"code\\\":\\\"Authorization_RequestDenied\\\",\\\"message\\\":\\\"Insufficient privileges to complete the operation.\\\",\\\"innerError\\\":{\\\"date\\\":\\\"2026-11-02T19:51:48\\\",\\\"request-id\\\":\\\"76a33348-e5b4-48e6-ae80-837772913323\\\",\\\"client-request-id\\\":\\\"76a33348-e5b4-48e6-ae80-837772913323\\\"}}}\""
],
"httpCode": "403"
},
"n8nDetails": {
"nodeName": "Resolve Test Recipient Teams Identity",
"nodeType": "n8n-nodes-base.httpRequest",
"nodeVersion": 4.4,
"itemIndex": 0,
"time": "11/2/2026, 2:51:48 PM",
"n8nVersion": "2.39.6 (Self Hosted)",
"binaryDataMode": "database",
"stackTrace": [
"NodeApiError: Forbidden - perhaps check your credentials?",
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file++++home+runner+_work+n8n+n8n+packages+core/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helpers/authentication.ts:283:10)",
" at processTicksAndRejections (node:internal/process/task_queues:104:5)",
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file++++home+runner+_work+n8n+n8n+packages+core/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helpers/factory.ts:178:11)"
]
}
}
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: 2.39.6
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): AKS
- Operating system:

