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
2022-01-12T14:03:13.837+00:00

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.
19,473 questions
{count} votes

3 answers

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,306 Reputation points
    2022-01-12T16:39:38.193+00:00

    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:

    164348-image.png

    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.

    https://login.microsoftonline.com/common/adminconsent?client_id=your_client_id  
    

    -----------------------------------------------------------------------------------------------------------

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

    4 people found this answer helpful.

  2. Vikas Konda 5 Reputation points
    2023-02-24T14:36:06.2333333+00:00

    What if the error occurs intermittently?

    1 person found this answer helpful.
    0 comments No comments

  3. Mohamed Abdulmoez 6 Reputation points
    2022-08-19T06:57:58.81+00:00

    Put your error code here

    232753-image.png

    and then you will understand what is the issue exactly.