Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
teros
Helper I
Helper I

How to use REST API from PBIRS with Custom Security authentication

We've implemented an updated version of the CustomSecuritySample to handle authentication for our on-premises Power BI Report Server.

 

I'd like to be able to automate some management tasks, including publishing an updated PBIX file to multiple folders and updating their data sources, but I can't seem to get past authentication with the REST API in C#.

 

Has anyone else done this? Are there code samples available?

2 REPLIES 2
shiboli
Microsoft Employee
Microsoft Employee

Depending on which auth have you implemented. You'll need to set proper auth headers to inform the server for auth handshake. https://docs.microsoft.com/en-us/sql/reporting-services/security/authentication-with-the-report-serv...

As I mentioned in the base note, I'm using the Custom Security Sample, which implements forms authentication. Does the REST API support this?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.