Forum Discussion

lkarolak's avatar
lkarolak
Frequent Visitor
8 years ago
Solved

Embedding report - unauthorized when report is shared

This is the scenario we have: an ASP.net application in which the users are authenticated via Azure AD. This application should embed a report from Power BI service. The report is in a premium capaci...
  • lkarolak's avatar
    lkarolak
    8 years ago

    Thank you, v-micsh-msft

     

    I think I figured it out myself.

    Since the users with which I shared the report were not members of the group, the line:

     

    client.Reports.GetReportInGroup(GroupId, ReportId);

     

    failed with 401 obviously, because the access to the group was denied.

     

    Then I did this:

    client.Reports.GetReports()

     

    and from the list I received I filtered the report I needed and then it worked.

     

    Thanks!