Why I cannot find my API in the list of APIs in MyAPI within Azure AD portal

Chockalingam, Saravana 20 Reputation points
2023-07-25T17:29:40.6133333+00:00

I have registered an API "msal-node-api" as well as a single page app called "msal-react-spa", but when I try to add permissions to that API from my SPA, I cannot find that API in the list in MyAPI:

User's image

API registration:

Screenshot 2023-07-25 122350

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,829 questions
{count} votes

Accepted answer
  1. Shweta Mathur 28,106 Reputation points Microsoft Employee
    2023-07-27T06:29:37.0033333+00:00

    @Chockalingam, Saravana

    Thanks for the confirmation.

    I repro the scenario at my end and there are some recent changes to expose the API in Entra ID.

    You need to confirm the below changes to expose the API to the client app in Microsoft Entra ID.

    1.Expose the API to client apps by adding a scope.

    User's image

    2.Add App roles to the API which Entra Id emit a role claim for each role that the user or service principal has been granted.

    User's image

    3.Assign owner to the API which will allow users to own the application and expose to other apps.

    User's image

    Thanks for bringing this up. I will work with our team to update the documentation for the same.

    Thanks,

    Shweta

    Please remember to "Accept Answer" if answer helped you.

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Shweta Mathur 28,106 Reputation points Microsoft Employee
    2023-07-26T10:15:52.91+00:00

    Hi @Chockalingam, Saravana ,

    Thanks for reaching out.

    You need to expose the API to client apps by adding a scope. By registering your web API and exposing it through scopes, you can provide permissions-based access to its resources to authorized users and client apps that access your API.

    Refer to expose the API - https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-expose-web-apis

    Once you expose the API , you can configure the client's permissions to the API.

    Hope this will help.

    Thanks,

    Shweta


    Please remember to "Accept Answer" if answer helped you.