entra-powershell icon indicating copy to clipboard operation
entra-powershell copied to clipboard

UUF Customer feedback: -ClientSecretCredential error in Connect-Entra.md, Example 8

Open csmulligan opened this issue 11 months ago • 0 comments

Describe the bug A customer reported via the UUF triage app that "Example 8 does not work for user name password this is incorrect" in https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.entra/connect-entra.

ASK: Can you please double-check the script in Example 8? I got the below error in my test tenant with the correct IDs / permissions.

To Reproduce

image

Error: Connect-MgGraph: ClientSecretCredential authentication failed: AADSTS700016: Application with identifier '3f880a1f-8d3c-45d9-952b-140e33a7042f' was not found in the directory 'Default Directory'. 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. Trace ID: 9ab4f187-79aa-4838-b47e-320ad63e8a01 Correlation ID: ebf0568a-66fb-4248-8b4b-8ac38320f975 Timestamp: 2025-01-08 09:55:49Z

Expected behavior No error message during the authentication.

Module Version 0.19.0

Environment Data Name Value


PSVersion 7.4.6 PSEdition Core GitCommitId 7.4.6 OS Microsoft Windows 10.0.22631 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0

Screenshots See above.

csmulligan avatar Jan 08 '25 17:01 csmulligan