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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
lferdinand
Frequent Visitor

Apps Owns Data Sample: groupId

I'm stepping through the "App Owns Data" sample and have hit a wall...

 

Power BI - Embed Sample

GroupId is empty. Please select a group you own and fill its Id in web.config
 
A recent change in Power BI eliminated the GroupId in favor of App Workspaces. 
 
How can I adjust the sample to account for this and not require groupId in webconfig
1 ACCEPTED SOLUTION

Actually, it is possible to get a groupid from PowerBI.Apiary - so I used that.

 

They still exist but appear to be hidden now behind the app workspace...

View solution in original post

3 REPLIES 3
mrclan
New Member

I was stuck at the same point, and only later figured this out.

The default workspace called "My Workspace" does not have a guid. But if you create a new "workspace", and click on it, the url clearly contains the group guId as also highlighted below.

 

https://app.powerbi.com/groups/7c99fe0e-cea8d-4f15-bc8c-82af1c86c4a6/groupwelcome

 

Just in case if anyone finds this useful.

Eric_Zhang
Microsoft Employee
Microsoft Employee



@lferdinand

As per the online documentation, for the "App Owns Data" sample, a workspace is mandatory, though it was not limited.


When you are ready to move to production, your app workspace must be assigned to a capacity. Power BI Embedded, within Microsoft Azure, offers capacity to use with your applications. 



You could still try to comment out the below code snippet in Homecontroller.cs and change other part code in the sample, however it is not recommended.

            if (string.IsNullOrEmpty(GroupId))
            {
                return "GroupId is empty. Please select a group you own and fill its Id in web.config";
            }
    

            // Group Id must be a Guid object.
            if (!Guid.TryParse(GroupId, out result))
            {
                return "GroupId must be a Guid object. Please select a group you own and fill its Id in web.config";
            }

Actually, it is possible to get a groupid from PowerBI.Apiary - so I used that.

 

They still exist but appear to be hidden now behind the app workspace...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.