AADSTS700016: Application with identifier 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' was not found in the directory

Jimmy Contreras 0 Reputation points
2024-05-07T23:03:31.8033333+00:00

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

This happen when i run the "Invoke-IntuneDocumentation -FullDocumentationPath c:\temp\IntuneDoc.docx" for Automatic Intune Documentation.

I have attempted to grant permission on Azure Enterprise Application, but the "Grant Admin Consent" option is grayed out.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,027 questions
Microsoft Intune Reporting
Microsoft Intune Reporting
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Reporting: The process of giving an account of something that has been observed, heard, done, or investigated.
64 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. akinbade abiola 4,210 Reputation points
    2024-05-08T00:07:35.39+00:00

    Hello Jimmy Contreras

    Thanks for your question

    Regarding the "Grant Admin Consent" option being grayed out, this usually happens when the user account you're using doesn't have sufficient privileges to grant consent for the application at the tenant level.

    As a solution, I will recommend you elevate your access to an administrative role capable of performing this action, like the Global Admin.

    https://learn.microsoft.com/en-gb/entra/identity/role-based-access-control/delegate-by-task#enterprise-applications

    If you're not logged in with such an account, you might need to reach out to your Azure AD administrator to perform the consent operation or elevate your permissions accordingly.

    This is further answered here:

    https://stackoverflow.com/questions/75843261/unable-to-grant-admin-consent-to-an-app-using-the-azure-account-owner

    Pls let me know if the solution was helpful or u have further questions

    1 person found this answer helpful.
    0 comments No comments

  2. Crystal-MSFT 44,851 Reputation points Microsoft Vendor
    2024-05-08T02:23:44.4166667+00:00

    @Jimmy Contreras, Thanks for posting in Q&A. For the error, it seems there's no registered application existing with the registration application id you used. And you need to manual create an app Registration with required permission.

    https://github.com/ThomasKur/IntuneDocumentation?tab=readme-ov-file#additional-options

    Note: Non-Microsoft link, just for the reference.

    In addition, I notice the Intune & Azure AD Conditional Access Documentation seems to be depreciated which mentioned in this link:

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments