How to get client ID and client Secret other than Azure Portal ?

Padmini Anand 21 Reputation points
2023-02-03T08:14:42.85+00:00

Hi Team,

As I don't have access to Azure portal for EA customer, is there any way to fetch the Client Id and Client Secret using the billing account/enrollment number of the customer.

I need this creds to get the access token for Cost Report API .

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2023-02-03T13:21:10.9833333+00:00

    Sorry, not possible.

    Even if you had access to the app, the client secret is hidden once generated:

    https://learn.microsoft.com/en-us/azure/healthcare-apis/azure-api-for-fhir/register-confidential-azure-ad-client-app

    User's image


  2. JamesTran-MSFT 36,911 Reputation points Microsoft Employee Moderator
    2023-02-13T20:42:58.0333333+00:00

    Padmini Anand

    Thank you for your post!

    Adding onto what was shared by Andy, since you don't have access to the Azure Portal/Azure AD tenant for your EA customer. There's no direct way for you to get the Client ID of the Azure AD App Registration. However, if you try to sign-in to your customer's app, you might run into the AADSTS50020 error message, which ***could ***contain the App Registration's client ID.

    Error AADSTS50020 - User account from identity provider does not exist in tenant:

    User account {email} from identity provider {idp} does not exist in tenant {tenant} and cannot access the application {appId}({appName}) in that tenant...User's image

    If you'd like a feature to be available where you can get the Client Id and Client Secret using the billing account/enrollment number of your EA customer, I'd recommend leveraging our User Voice forum and creating a feature request, so our engineering team can look into implementing this.

    Thank you for your time and patience throughout this issue.


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.