Yderligere logon- eller kontorelaterede problemer i Microsoft Teams til virksomheder
Please note that this is the Danish (da-dk) forum. I kindly recommend posting your question in Danish so that more community members can assist you effectively. If you prefer using English, you are welcome to post in the English forum instead. I sincerely appreciate your understanding and cooperation.
Hi @Jakob
Based on the error and the fact that the same issue occurs with multiple SharePoint Online site URLs, I would not treat this as a simple SharePoint site permission problem. Browser access only confirms the interactive user can open the site; server-based SharePoint integration uses server-to-server authentication, so the Dynamics on-premises server, certificate, Azure app, and SharePoint Online tenant configuration must also be valid.
Please verify the current Microsoft prerequisites for Dynamics 365 Customer Engagement on premises with SharePoint Online. Microsoft now documents that, starting in March 2025, an Azure application with SharePoint application permissions is required. The app should have SharePoint Sites.FullControl.All application permission with admin consent, and the Dynamics on-premises organization must be configured with the Azure app ID and tenant ID in PartnerApplicationBase.
Also confirm that the Dynamics server-to-server certificate is configured as S2STokenIssuer, that CertificateReconfiguration.ps1 has been run on the required Dynamics web application servers, and that the matching certificate has been uploaded to the Azure app registration.
Another important item to check is SharePoint Online access control. If SharePoint Online is configured to block access from unmanaged devices, Microsoft documents that Dynamics server-based SharePoint integration can receive 401 Unauthorized because SharePoint rejects the AppAssertedUser token used by the server-to-server flow.
Finally, make sure the configuring user has the Dynamics 365 System Administrator security role, and validate any existing SharePoint Site records under Document Management in Dynamics to rule out stale or broken site/document location records.
Please refer the following documents:
Configure Azure app for SharePoint access
Set up Customer Engagement apps to use SharePoint Online
Troubleshoot SharePoint integration
I hope this help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click ""Comment"".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.