title: Microsoft Graph API OrganizationFromTenantGuidNotFound using MSAL
body: <p>In AAD App registration has Implicit Grant Flow to true;
  We have delegated permissions to User.Read and User.Read.All.</p>
  
  <pre><code>private static getContext(): Msal.UserAgentApplication {
      if (AuthenticationService.Context) return AuthenticationService.Context;
      const logger = new Msal.Logger((_logLevel, message, _piiEnabled) =&gt; {
          console.log(message);
      }, { level: Msal.LogLevel.Verbose, correlationId: "12345" });
  
      AuthenticationService.Context = new Msal.UserAgentApplication(
          Environment().authentication.clientId,
          AuthenticationService.getAuthority(),
          (errorDesc, token, error, _tokenType) =&gt; {
              if (token) {
                  AuthenticationService.isAuthenticated = true;
                  AuthenticationService.accessToken = token;
              } else {
                  const localizedError: string = LocalizationService.localize(error);
                  alert(localizedError !== error ? localizedError : errorDesc);
              }
          },
          {
              logger: logger,
              storeAuthStateInCookie: true,
              state: "12345",
              cacheLocation: "localStorage" // enable this for IE, as sessionStorage does not work for localhost.
          });
      if (AuthenticationService.Context.getUser()) {
          AuthenticationService.isAuthenticated = true;
      }
  
      return AuthenticationService.Context;
  }
  </code></pre>
  
  <p>We have login method:</p>
  
  <pre><code>public static login(): void {
      const context: Msal.UserAgentApplication = AuthenticationService.getContext();
      if (context.loginInProgress()) return;
      AuthenticationService.CurrentUser = null;
      context.loginRedirect(AuthenticationService.SCOPES);
  }
  </code></pre>
  
  <p>And we have method to get token for graph:</p>
  
  <pre><code>public static async getGraphToken(): Promise&lt;string | null&gt; {
      const authContext: Msal.UserAgentApplication = AuthenticationService.getContext();
      const cachedUser: Msal.User = authContext.getUser();
      if (!cachedUser) {
          return null;
      }
      return authContext.acquireTokenSilent(AuthenticationService.SCOPES);
  }
  </code></pre>
  
  <p>When I use graph token to get user photo I have:</p>
  
  <pre><code>{
      "error": {
          "code": "OrganizationFromTenantGuidNotFound",
          "message": "The tenant for tenant guid '68cc0dcb-5873-4ea0-a498-fe57e9b51827' does not exist.",
          "innerError": {
              "request-id": "b402e405-342a-4002-a880-84f30413cbf7",
              "date": "2018-11-30T23:39:23"
           }
       }
  }
  </code></pre>