web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Return Authentication_InvalidCredentials error when using OData and API Batch

(0) ShareShare
ReportReport
Posted on by 140

Hi Experts,

 

One of our customer encounters one strange issue when using OData or API Batch.

 

It always returns error "Web service call failed because user could not be authenticated or authorized.".

 

But with the same user credentials, they can call OData service successfully. Customer uses Basic Auth.

 

Is it relate to the user permission? Can anyone shed me some ideas on this issue?

 LogScreenshot.png

Thanks

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Suggestion is to use Postman for testing and use OAUTH for authentication. Basic Authentication is being deprecated at least in latest SaaS release of BC.

    Thank you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans