We quite often see these 401 Unauthorized issues in Postman, even after connected to Dataverse environment and also all the required setups done in Postman.
This issue can be due to the existing Token expiration.
Follow the below steps to regenerate the Token in Postman.
Step 1: Navigate to your collection and Click on Get New Access Token.
Once, you get the New Access Token, you can see the below message.
Step 2: New Token will be generated automatically and Click on Use Token to use this for executing the Web API’s.
Step 3: Click on Access Token dropdown and Click on Manage Tokens.
You can see the all the Tokens information.
All Available Tokens are displayed without a strike text and Expired Tokens are displayed with a strike text.
Step 4: Hover on the Expired Token, Click on Delete icon to delete it.
Step 5: Expired Token is deleted and Close the MANAGE ACCESS TOKENS popup.
Step 6: Go back to your Web API request.
Click on Send to execute your Web API and see the results.
Hope you have successfully resolved this issue and able to connect to Dynamics 365.
Please share your valuable feedback on this article.
Articles you might like related to Dynamics 365 CE.
How to Download and Install Postman on your PC?
How to Register an App in Azure Active Directory for Dynamics 365 CE Online?
How to setup and connect to the Dataverse environment in Postman?
How to retrieve records of a Dataverse environment in Postman?
How to get the Dataverse Web API endpoint details in the Microsoft PowerApps?
How to create Microsoft Dynamics 365 CE Online 30 Days Trial Version?
How to create Users and Assign Security roles in Dynamics 365 CE Online?
How to load Dynamics 365 CE Online Environment faster?
How to Install, Connect to Microsoft Dataverse and Use XrmToolBox?