Problem to login https:// login.microsoftonline.com

Sokoban 1,036 Reputation points
2024-06-19T09:21:45.7533333+00:00

Hi !!

I'm trying to login and I got that error message:

AADSTS700016: Application with identifier 'your_client_id' was not found in the directory 'XXXX XXXX XXXX'. 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.

What can I do to solve that ? Something I need re-configuration ?

Sokoban

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,061 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,170 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,059 questions
0 comments No comments
{count} vote

4 answers

Sort by: Most helpful
  1. Samith Chathuranga Perera 0 Reputation points
    2024-06-19T10:52:59.35+00:00

    Hello! The error AADSTS700016 indicates that the application identifier (Client ID) you’re using is not found in the Azure directory specified. This could be due to several reasons:

    1. Incorrect Client ID: Ensure that you’re using the correct Application ID as your Client ID. The Client ID should be in GUID format12.
    2. Wrong Tenant: Verify that you’re sending the authentication request to the correct tenant. The Tenant ID should match the one associated with your Service Principal1.
    3. Application Not Installed or Consented: The application must be installed by the tenant’s administrator or consented to by any user within the tenant2.

    To resolve this issue, you can:

    If after these checks the problem persists, you may need to reconfigure the application registration settings in Azure AD to ensure all details are correct and that the application has the necessary permissions. Remember, the Client ID and Tenant ID are sensitive information, so handle them securely.

    0 comments No comments

  2. Akhilesh Vallamkonda 10,150 Reputation points Microsoft Vendor
    2024-06-20T14:41:19.6466667+00:00

    Hi @Sokoban

    Thank you for post!

    I understand that you are trying to login to an application, and you got an error code AADSTS700016.

    The error code says the application you are trying to access does not exist in the tenant you are signing, or the application was registered in another directory, and it not enabled as a multi-tenant application to access.
    This error occurs when the user's credentials are not valid or the user is not authorized to access the requested resource.

    Cloud you please check and verify that your application is configured the correct Application identifier

    I suggest you please refer the following Q&A thread's for more information.
    https://learn.microsoft.com/en-us/answers/questions/1496239/aadsts700016-application-with-identifier-185xxx-xx
    https://learn.microsoft.com/en-us/answers/questions/692461/message-aadsts700016-application-with-identifier-n
    Hope this helps. Do let us know if you any further queries.

    Thanks.

    Akhilesh.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


  3. Sokoban 1,036 Reputation points
    2024-06-26T06:22:16.74+00:00

    I have solved that, Its about Connect-MsGraph

    Make a new appregistration , and volia its working again :-)

    0 comments No comments

  4. Akhilesh Vallamkonda 10,150 Reputation points Microsoft Vendor
    2024-06-26T11:33:51.5266667+00:00

    Hello @Sokoban
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:> Problem to login https:// login.microsoftonline.com and you're getting error AADSTS700016 Application with identifier 'your_client_id' was not found in the directory 'XXXX XXXX XXXX'. 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.

    Solution:

    You have solved this issue by Connect-MsGraph and Make a new appregistration

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.