Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 9LiNs40wyomN0WzIi+C6Pq
Power Apps - Microsoft Dataverse
Unanswered

How to pass authentication while requesting Dataverse Web API from the postman?

Like (0) ShareShare
ReportReport
Posted on 1 Apr 2021 06:49:45 by

Hello,

 

I am trying to access Dataverse Web API using postman with following details:

 

https://env.crm.dynamics.com/api/data/v9.1/accounts?$select=name&$top=3 HTTP/1.1&Accept=application/json&OData-MaxVersion=4.0&OData-Version=4.0

 

However it throws 401 authentication error, I am sure I am missing some sort of configuration in the environment or access token needs to be passed in the request? Or I should use other tool to send the request?

 

Can anyone please share the idea how can I successfully make this request ?

 

Thanks,

 

 

  • ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on 09 Apr 2021 at 14:17:46
    Re: How to pass authentication while requesting Dataverse Web API from the postman?

    Hi @dave8,

     

    Just following up, wondering if the above steps worked for you or were helpful?

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on 01 Apr 2021 at 07:02:04
    Re: How to pass authentication while requesting Dataverse Web API from the postman?

    Hi @dave8 ,

     

    You need to retrieve an access token from Azure AD and pass it in through the request header as a bearer token. Key things to setup:

    • Register a client application in Azure Active Directory
    • Create an application user in dataverse for your client application to map to, and grant the application user appropriate security roles so it can access records in Dataverse.

    Detailed steps on how to set this up is documented here.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Loading started
Loading complete