Query on API Management: Obtaining Subscription Keys Outside Developer Portal, Easy Auth, and Comparison with B2C Tokens

hampton123 1,175 Reputation points
2024-01-17T21:21:33.1566667+00:00

I was wondering if API management subscription keys can be received through methods outside of the developer portal, such as Postman. I have Easy Auth for my Azure Functions in APIM as well as the subscription key protecting them. I was just curious if in the same way that B2C tokens can be obtained, subscription keys can be obtained.

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

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2024-01-18T14:52:47.07+00:00

    hampton123 Thanks for posting your question in Microsoft Q&A. Yes, you can retrieve subscription keys (Primary/Secondary) for Subscriptions via Subscription - List Secrets rest API from any client including Postman. sid - subscription entity identifier needs to be passed and this can be retrieved via Subscription - List API.

    To call this API, appropriate role permission such as Microsoft.ApiManagement/service/subscriptions/listSecrets/action should be assigned for user/application and check out https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations#microsoftapimanagement for more info about the list of permissions.

    User's image

    I hope this helps and let me know if any questions.


    If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.


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.