Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Issue Authorizing Dynamics 365 ReportSession with App Registration Account

Posted on by 10

I have an Azure Function that accesses Dynamics 365 reports. It first retrieves an access_token. Then posts to /CMSReports/RSViewer/ReportViewer.aspx to retrieve a report session. Then posts another request to /Reserved.ReportViewerWebControl.axd which then response with an output stream of the report.

Everything works fine with an existing service account we have in place. But we want to move away from using that service account and replace it was an app registration account.

I'm able to access Dynamics 365 data with my app account (no issues with the token). But when I try to use that same token to make a request from ReportViewer, it returns HTML content which looks to be a login page.

App account has the same AD roles as the service account. I've added every permission possible to the associated user in Dynamics. I've also added a ton of different API Permissions on the app registration record, but I'm obviously missing something else.

Does something additional need to be granted to this app registration in order to access the ReportViewer?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans