Forum Discussion

Himanshu_G's avatar
Himanshu_G
Helper I
1 year ago
Solved

Generate Power BI API Token Without User Interaction for Scheduled Report Exports

We need to export Power BI reports using the Power BI REST API and send them via email on a scheduled basis in a User Owns Data scenario. The challenge is that obtaining an access token requires user...
  • v-prasare's avatar
    v-prasare
    1 year ago

    Hi Himanshu_G,

    Can try using a Service Principal (App Owns Data) is a secure, scalable, and reliable way to automate Power BI report exports. It lets your system access Power BI without needing a user to log in, making it perfect for scheduled tasks. This approach ensures that reports are delivered consistently and securely, while also reducing manual work—providing a better experience for your team and your customers.

     

    Please refer to below documentation for same and let me know if this helps.
    https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal?tabs=azure-portal

     

     

     

    Thanks,

    Prashanth Are

    MS Fabric community support