Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Solved! Go to Solution.
@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.
You could also get the groupId via the REST API Get Groups.
@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.
You could also get the groupId via the REST API Get Groups.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |