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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Business Central forum

Access our Business Central data using API and application credentials (not users credentials)

(0) ShareShare
ReportReport
Posted on by

Dear Business Central experts,

We would like to access our Business Central data using the API and access these data using application credentials.

Now this article...
https://community.dynamics.com/365/b/ocp/archive/2018/10/24/accessing-business-central-data

...suggests that here are just two methods:
- Basis Authentication - it seems to allow application credentials
- AAD authentication - it seems to allow only user credentials for BC

However the Developer and IT help manual states quite clearly that basic authentication should not be  used in production.
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-connect-apps

Should we conclude that currently there is no safe way for accessing our business central data using application credentials?
If no, can you point me to an article that explains how to do it?

A third manual that we consulted already:
https://docs.microsoft.com/en-us/azure/active-directory/develop/sample-v1-code
(It confirms the picture that Microsoft-owned multi-instance apps like Microsoft Graph can only be accessed with credentials of a logged in human user)

With best regards,
Wolter Kaper

Categories:
I have the same question (0)
  • WolterKaper Profile Picture
    on at

    That's cool!

    The docs do need an update, they state it's not OK (probably having some use case in mind that is not ours).

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You can use Basic auth in production, it's just your choice if using AAD or Basic authentication.

  • Angrist Profile Picture
    5 on at

    Is this confirmed by microsoft somewhere?

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans