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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.