Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Business Central and AAD

Hi,  I am trying to set up my custom connector to use AAD authentication. I have tried to set up basic auth which works fine. But trying to set up Oauth2.0 and AAD it get error 401 - Unauthorized.

My security tab:

Authentication type: OAuth 2.0

Identity Provider: Azure Active Directory

Client id: id from app registration

Client secret: secret from app registration

Login URL: (default)

Tenant ID: common (default)

Resource URL: Scope: Scope (default)


Steps in Azure:

Created App registration

Added Authentication for Web, and copied url into redirect url, left log off empty. Nothing else filled out under Authentication


Under certificates and secrets created a new secret, never expires Nothing more in Azure


When testing an REST api call, I get errors below. What to do? { "error": { "code": "Unauthorized", "message": "The credentials provided are incorrect" } } Headers: { "content-language": "en-US", "content-length": "87", "content-type": "application/json", "date": "Fri, 23 Oct 2020 12:30:16 GMT", "ms-correlation-x": "f5d2d9b4-9ce1-4e99-8fe6-44e07f71b479", "strict-transport-security": "max-age=31536000; includeSubDomains", "www-authenticate": "Basic realm=\"\", Bearer authorization_uri=\"\"", "x-content-type-options": "nosniff", "x-ms-apihub-cached-response": "true" }

Frequent Visitor

I have the same issue. Did you solve the problem yet?

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,437)