"Tenant for tenant guid does not exist" when using subscription for getting Change Notifications

Hayate Matsu 26 Reputation points
2022-06-27T16:48:59.11+00:00

I want to run the node.js webhook sample, I created new tenant and tried to sign in and subscription.
Login was successful, but subscription failed as shown below.

GraphError: Operation: Create; Exception: [Status Code: Unauthorized; Reason: The tenant for tenant guid '33d0624b-a540-4469-a789-0cb5f27bbd7e' does not exist.]  
    at new GraphError (E:\outlook\nodejs-webhooks\node_modules\@microsoft\microsoft-graph-client\lib\src\GraphError.js:34:28)  
    at Function.GraphErrorHandler.constructErrorFromResponse (E:\outlook\nodejs-webhooks\node_modules\@microsoft\microsoft-graph-client\lib\src\GraphErrorHandler.js:62:22)  
    at Function.<anonymous> (E:\outlook\nodejs-webhooks\node_modules\@microsoft\microsoft-graph-client\lib\src\GraphErrorHandler.js:89:48)  
    at step (E:\outlook\nodejs-webhooks\node_modules\tslib\tslib.js:143:27)  
    at Object.next (E:\outlook\nodejs-webhooks\node_modules\tslib\tslib.js:124:57)  
    at E:\outlook\nodejs-webhooks\node_modules\tslib\tslib.js:117:75  
    at new Promise (<anonymous>)  
    at __awaiter (E:\outlook\nodejs-webhooks\node_modules\tslib\tslib.js:113:16)  
    at Function.GraphErrorHandler.getError (E:\outlook\nodejs-webhooks\node_modules\@microsoft\microsoft-graph-client\lib\src\GraphErrorHandler.js:85:38)  
    at GraphRequest.<anonymous> (E:\outlook\nodejs-webhooks\node_modules\@microsoft\microsoft-graph-client\lib\src\GraphRequest.js:315:84) {  
  statusCode: 401,  
  code: 'ExtensionError',  
  requestId: 'd25270a7-62b1-42f0-b85a-f19da6e80445',  
  date: 2022-06-27T21:39:55.000Z,  
  body: `{"code":"ExtensionError","message":"Operation: Create; Exception: [Status Code: Unauthorized; Reason: The tenant for tenant guid '33d0624b-a540-4469-a789-0cb5f27bbd7e' does not exist.]","innerError":{"date":"2022-06-27T16:39:55","request-id":"d25270a7-62b1-42f0-b85a-f19da6e80445","client-request-id":"8a7fd4cf-b6b8-0c02-f685-ec162e5a9b68"}}`  
}  

I couldn't find out why this error occurred.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,576 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,454 questions
0 comments No comments
{count} votes

Accepted answer
  1. 2022-06-28T03:21:40.773+00:00

    Hello @Hayate Matsu , please ensure you have Office/Team licenses available and assigned, the authenticated user is a member and not guest (external) user and that it is not a personal account.

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it and complete the quality survey so that others in the community with similar questions can more easily find a rated solution.


0 additional answers

Sort by: Most helpful