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

Anthony Sarno 41 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.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,182 questions
{count} votes

3 answers

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,466 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.

    5 people found this answer helpful.

  2. Vikas Konda 5 Reputation points

    What if the error occurs intermittently?

    1 person found this answer helpful.
    0 comments No comments

  3. Mohamed Abdulmoez 6 Reputation points

    Put your error code here


    and then you will understand what is the issue exactly.