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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Embedded API - get report object without workspaceId

Is it possible for me to retrieve a report object from the API without passing in a workspaceId and while using a service principal to authenticate? When I try to call:

 

client.Reports.GetReportAsync(reportId);


I get a 403 saying the application is not permitted.

 

However using the same service principal I am successfully able to make a call and retrieve the report using:

 

client.Reports.GetReportInGroupAsync(WorkspaceId, reportId);


Is there a solution or workaround so that I do not need to provide the workspaceId with each request I make to my service? The service principal has been given access to the workspace already.

 

Thanks

 

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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