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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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