Message: AADSTS700016: Application with identifier not found in the directory (domain name). error logging into outlook calendar from web app

Anthony Sarno 21 Reputation points

Message: AADSTS700016: Application with identifier 'uFB7Q~DDvDvTuuJa5UVkItuq4EYyDdm1TYB-E' was not found in the directory (domain name). 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.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,472 questions
{count} votes

3 answers

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 55,376 Reputation points

    Hi @Anthony Sarno • Thank you for reaching out.

    Looking at the error, the Application identifier 'uFB7Q~DDvDvTuuJa5UVkItuq4EYyDdm1TYB-E' is incorrect. I suspect that in your application, you have specified Client Secret instead of Client ID (aka App ID). This is why the authentication request contains incorrect Client ID and Azure AD fails to find the app, resulting in this error. Search for your app under Azure AD > App registrations and make sure you are using its client ID.

    In Azure AD, the Client ID is always in GUID format, as highlighted below:


    In case, after configuring the correct Client ID you still get this error, you need to construct the below URL and provide it to the Global administrator of your tenant, who will have to consent after successfully signing in.  


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

  2. Mohamed Abdulmoez 1 Reputation point

    Put your error code here


    and then you will understand what is the issue exactly.

  3. Vikas Konda 0 Reputation points

    What if the error occurs intermittently?