简体   繁体   中英

Website with Power BI unable to see Group/Workspace

I am a Power BI/SQL developer who has inherited a website that integrates with Power BI using C# APIs. This has been working fine until today - whenever I attempt to load a Power BI report from the website, it throws an exception which I've tracked down in the code to here:

        var groupId = (await PowerBIClient.Groups.GetGroupsAsync()).Value.FirstOrDefault()?.Id;
        if (string.IsNullOrEmpty(groupId))
        {
            throw new EntryPointNotFoundException("No group available, need to create a group and upload a report");
        }

When I attempted to load the Workspace containing the reports in the Power BI portal, I found that I no longer had access, because for some reason my pro license was now a free license (I was also unable to publish reports to the portal). After renewing the license for me, I regained access and once again could publish.

My current assumption is that the two are related. I'm trying to find how Power BI access is granted from the website, and if it is possible that the account used to access this could have also been downgraded to free?!

Does anyone know how I can find which user has access to the report? Is it defined on the App Service in Azure? Unfortunately, everyone who knows about the website set up were either contractors or have left, so there is no one else here I can turn to.

To access the groupId, the user need Workspace.Read.All or Workspace.ReadWrite.All permission.

You can update/check the access of workspace (Giving access to a workspace grants the same permissions in the workspace's reports.) by following these steps:

  1. Sign in to Power BI service.

  2. Scroll to the workspace you want to enable access for, and from the More menu, select Workspace access.

  3. There you can see the users and the provided permission

References:

https://docs.microsoft.com/rest/api/power-bi/groups/get-groups

https://docs.microsoft.com/power-bi/connect-data/service-datasets-manage-access-permissions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM