Explore Business Central API through Postman using AAD Authentication | CloudFronts

Explore Business Central API through Postman using AAD Authentication

Posted On June 10, 2018 by Anjali Hemmadi Posted in

Introduction:

In this article, we will walk through steps on how to authenticate Business Central API using AAD Authentication in Postman

Pre-Requisite:

  1. Business Central account
  2. Admin Access in Azure Portal

Business Central API AAD authentication in Postman:

  1. In Postman, make a GET request to Business Central base API URL.
    Base URL: https://api.businesscentral.dynamics.com/v1.0/api/beta
    For using successful authentication, we need to add domain name or tenant ID
    Domain URL: https://api.businesscentral.dynamics.com/v1.0/myusersdomain.com/api/beta
  1. In Azure Active Directory, create a new Web API Type application registration.
    1. Sign On URL: https://www.getpostman.com/oauth2/callback
    2. Reply URL: https://www.getpostman.com/oauth2/callback
    3. Required Permission: Dynamics 365 (Note: If you are not able to find Dynamics 365 under the required permission, type Dynamics in Search bar on required permission section. Also, remember to Grant Permission to Application(requires Admin permission))
    4. Under the Keys section, add new Key and Save. Copy the Generated Key as it will not be visible later.
  2. Now in Postman authorization tab, select OAuth 2.0 in Type. Provide following details
    1. Give a Token Name
    2. Call back URL: https://www.getpostman.com/oauth2/callback
    3. Auth URL: https://login.windows.net/myuserdomain.com/oauth2/authorize?resource=996def3d-b36c-4153-8607-a6fd3c01b89f
    4. Access Token URL: https://login.windows.net/myuserdomain.com/oauth2/token?resource=996def3d-b36c-4153-8607-a6fd3c01b89f
    5. Client ID: (Application ID of Azure Application)
    6. Client Secret Key: Paste the Key copied in step 2.d
    7. Grant Type: Authorization Code
    8. Untick Request Token locally
  3. Click Request Token and then Use Token. If the token is successfully generated, then you will see Authorization Code under Header section in Postman
  4. Now Click send.

Share Story :

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close