microsoft/Intune-PowerShell-SDK

Sorry, but we’re having trouble signing you in.

geektbee opened this issue · 3 comments

Ever since May 07, 2024, our system has been getting an error when attempting to run Connect-MSGraph -PSCredential $creds. The error is:

AADSTS700016: Application with identifier '<GUID-REDACTED>' was not found in the directory '<COMPANY-INITIALS-REDACTED>'. 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.

(Replace the REDEACTED tags with real data in your mind, please, because there really is something legit there)

We can clearly see the application in the Enterprise Applications section of the Azure portal. We can see the account that we are using has permission in the "Users and Groups" tab. We can see the failed sign-in attempt in the logs on this application with this Application ID in the "Sign-In Logs". This is very strange, because it has logged a message saying that it can't find itself, then saved the log to itself that it can't find itself.

We have attempted to Remove-Module and re-Install-Module, as well as re-run the Connect-MSGraph -AdminConsent cmd. The message returns the same every time and the Enterprise Application's Sign-In Logs logs it.

What other data do you need from us to help resolve this?

image

image

@weyCC81
Ah, I see. Thank you for your guidance on all this!!

@weyCC81 I'm not clear on your question. Are you referencing the microsoft/Intune-PowerShell-SDK repo, or the microsoftgraph/powershell-intune-samples repo? What's the governance-specific concern?