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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Issue Authorizing Dynamics 365 ReportSession with App Registration Account

(0) ShareShare
ReportReport
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?

I have the same question (0)

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans