简体   繁体   English

具有 Power BI 的网站无法查看组/工作区

[英]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.我是一名 Power BI/SQL 开发人员,他继承了一个使用 C# API 与 Power BI 集成的网站。 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:直到今天,这一直运行良好 - 每当我尝试从网站加载 Power BI 报告时,它都会引发一个异常,我在此处的代码中找到了该异常:

        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).当我尝试在 Power BI 门户中加载包含报告的工作区时,我发现我不再具有访问权限,因为出于某种原因,我的 pro 许可证现在是免费许可证(我也无法将报告发布到门户)。 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?!我正在尝试查找如何从网站授予 Power BI 访问权限,以及是否有可能用于访问此权限的帐户也已降级为免费?!

Does anyone know how I can find which user has access to the report?有谁知道我如何找到可以访问报告的用户? Is it defined on the App Service in Azure?是否在 Azure 的 App Service 上定义? 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.要访问 groupId,用户需要Workspace.Read.AllWorkspace.ReadWrite.All权限。

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.登录到 Power BI 服务。

  2. Scroll to the workspace you want to enable access for, and from the More menu, select Workspace access.滚动到要启用访问的工作区,然后从更多菜单中,select 工作区访问。

  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/rest/api/power-bi/groups/get-groups

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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