How to figure out account email for app given client id in entra ID?

shrey kant 20 Reputation points
2025-08-05T18:04:37.88+00:00

I had registered an app exactly one year back under Entra ID for creating auth flow for "Login with Microsoft" for my website. I am getting an error: oauthlib.oauth2.rfc6749.errors.InvalidClientError: (invalid_client) AADSTS7000222: The provided client secret keys for app '2b981773-7470-4c00-bf67-35c8c49741ea' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 8afcf08a-f594-4f06-a640-9d9096e68101 Correlation ID: 61abfeac-8a46-4bb6-99ad-fcd75dfd0b33 Timestamp: 2025-08-01 16:42:48Z

However, on logging in, I can't see the app with the ID in my account. I tried searching for the client id mentioned above directly, but to no avail. I am able to register and see new apps, but we want to avoid creating a new app if it can be helped. I am looking for help with troubleshooting on how to see the app or identifying the email/account associated with this app. I am not sure if this is relevant, but I had applied for and received azure startup credits with the same account around 3 months back.

I have tried switching directories, and I don't see any other directories available. I've also tried searching for the client id and no results were found in the search bar either. I am looking for information on the account (email) for the app with this specific client ID 2b981773-7470-4c00-bf67-35c8c49741ea. Appreciate any help with this.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Answer accepted by question author
Raja Pothuraju 47,840 Reputation points Microsoft Employee Moderator
2025-08-06T06:34:24.91+00:00

Hello shrey kant,

As discussed during our call, we identified that the application was registered in a different directory, which is why you were unable to locate it in your current directory. After switching to the correct directory, we were able to locate the application and successfully update the client secret.

For more information about the /common endpoint and how to update your requests accordingly, please refer to the following documentation:

Update your code to send requests to /common

Supported account types for applications

User's image

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Newest

Your answer

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