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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Access Dynamics 365 database from third party application

(0) ShareShare
ReportReport
Posted on by 15

Hi All!

I'm trying to access the SQL Server database behind our Dynamics 365 installation. There's a nice step-by-step guide how to do that here:

https://dynamics-chronicles.com/article/how-access-dynamics-365-online-sql-server-database

I followed all steps and can easily connect from SQL Server Management Studio. Very, very cool!
However when I try to use a third party app to go the same way to access the server, I get the attached error message, saying the this app must be preauthenticated somewhere. But I don't understand how to do that and what that means?

3312.ErrorMessage.png

Can someone point me in the right directions?
It looks like the app is submitting some kind of identifier that must be white listed somewhere?!

Thanks for all your help in advance,

Patrick

I have the same question (0)
  • Suggested answer
    PerezAguiar Profile Picture
    Microsoft Employee on at
    RE: Access Dynamics 365 database from third party application

    Hey!

    Can you try switchin the "Active Directory - Password" for something like "azure MFA"?  The other point, is that in these kind of situations, you should generate an Azure AD Appplication & Service Principal (https://learn.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal) and then add the application to the environment and provide the right permissions as documented on https://learn.microsoft.com/en-us/power-platform/admin/manage-application-users

    Regards,

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 143

#2
DAnny3211 Profile Picture

DAnny3211 134

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans