How to Restrict API Access to Assigned Products and Users in API Management?

hampton123 1,175 Reputation points
2023-09-26T15:37:07.4166667+00:00

In APIM I assigned a specific API to a product, and users can only access this API in the developer portal if they are assigned the product in APIM. The issue is that when I call this API through Postman, the call still goes through. Is there a way to only allow users in APIM who have been assigned the API's product to call the API?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,463 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2023-09-26T16:50:49.8666667+00:00

    @hampton123 When creating a product in APIM, there is an option to toggle requiring a subscription as shown belowUser's image

    This creates a protected product, which requires subscription and a different key that developers can use to call its APIs. If this is not checked, then it is an open product as mentioned in the docs and can be called by developers' existing subscription key.

    These open products are not listed in the developer portal as such, but will need to be protected by other authentication mechanisms and policies, as mentioned in the docs.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.