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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
petersi
Helper II
Helper II

New Power BI Interfacing (embedding)

I am looking at the new documentation for Power BI integration features. I have gotten my app to connect to Power BI but I cannot retrieve the workspace list because I do not know where the Workspace ID is located. I am using the supplied example from the following link:

https://github.com/Microsoft/PowerBI-Developer-Samples

 

Specifically the  Apps Owns Data example as it was identified as the example showing embedding features for non poewer bi users. The operation to retrieve the workspaces is --> GetReportsInGroupAsync. This function takes a string paramter. The example documentation states this is the group or workspace Id in Power BI. The only ID with this name that I can see was when I created a workspace. The ID suppled was a simple string. The example validates that this value must be a guid. So my question is -- where is the ID that can be used in the dewscribed function located? This is an MS example demoing the new interfacing features and is unclear what this paramter is or where it comes from.

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee


@petersi wrote:

I am looking at the new documentation for Power BI integration features. I have gotten my app to connect to Power BI but I cannot retrieve the workspace list because I do not know where the Workspace ID is located. I am using the supplied example from the following link:

https://github.com/Microsoft/PowerBI-Developer-Samples

 

Specifically the  Apps Owns Data example as it was identified as the example showing embedding features for non poewer bi users. The operation to retrieve the workspaces is --> GetReportsInGroupAsync. This function takes a string paramter. The example documentation states this is the group or workspace Id in Power BI. The only ID with this name that I can see was when I created a workspace. The ID suppled was a simple string. The example validates that this value must be a guid. So my question is -- where is the ID that can be used in the dewscribed function located? This is an MS example demoing the new interfacing features and is unclear what this paramter is or where it comes from.


The GetReportsInGroupAsync(GroupId) GroupId is actually the app workspace ID in your power bi service, you could find it in the url when accessing the workspace in Power BI service and set it in the web.config file.

Capture.PNG

 

Capture.PNG

 

You could also get the groupId via the REST API Get Groups.

 

 

View solution in original post

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee


@petersi wrote:

I am looking at the new documentation for Power BI integration features. I have gotten my app to connect to Power BI but I cannot retrieve the workspace list because I do not know where the Workspace ID is located. I am using the supplied example from the following link:

https://github.com/Microsoft/PowerBI-Developer-Samples

 

Specifically the  Apps Owns Data example as it was identified as the example showing embedding features for non poewer bi users. The operation to retrieve the workspaces is --> GetReportsInGroupAsync. This function takes a string paramter. The example documentation states this is the group or workspace Id in Power BI. The only ID with this name that I can see was when I created a workspace. The ID suppled was a simple string. The example validates that this value must be a guid. So my question is -- where is the ID that can be used in the dewscribed function located? This is an MS example demoing the new interfacing features and is unclear what this paramter is or where it comes from.


The GetReportsInGroupAsync(GroupId) GroupId is actually the app workspace ID in your power bi service, you could find it in the url when accessing the workspace in Power BI service and set it in the web.config file.

Capture.PNG

 

Capture.PNG

 

You could also get the groupId via the REST API Get Groups.

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.