查找已登录的 Power BI 用户Find Power BI users that have signed in

如果你是租户管理员,想查看已登录 Power BI 的用户,则可以使用 Azure Active Directory 访问和使用情况报告进行查看。If you are a tenant admin, and want to see who has signed into Power BI, you can use the Azure Active Directory access and usage reports to gain visibility.

可以访问 Azure Active Directory (Azure AD) 门户和经典门户中的活动报告。You can access the activity report within the new and the classic Azure Active Directory (Azure AD) portals. 上面的视频使用经典门户作为示例,但本文将重点介绍新门户。While the video above uses the classic portal as an example, this article will highlight the new portal.

备注

此活动报告包括 Power BI(免费)和 Power BI Pro 用户,但不会按用户所拥有的许可证对他们进行标识。This activity report includes both Power BI (Free) and Pro users but does not identify them by which license they have.

要求Requirements

下面是查看登录活动报告的要求。The following are requirements to view the sign-in activity report.

  • 全局管理员、安全管理员或安全读者角色中的用户可以访问数据。Users in the Global Admin, Security Admin or Security Reader role can access the access the data.
  • 任何用户(非管理员)都可以访问自己的登录活动报告。Any user (non-admins) can access their own sign-ins.
  • 租户必须拥有与报告关联的 Azure AD Premium 许可证才能查看所有登录活动报告。Your tenant must have an Azure AD Premium license associated with it to see the all up sign-in activity report.

使用 Azure 门户查看登录活动Using the Azure portal to view sign-ins

可使用 Azure AD 门户查看登录活动。You can use the Azure AD portal to view sign-in activity.

  1. 浏览到 Azure 门户,选择“Azure Active Directory”。Browse to the Azure portal and select Azure Active Directory.
  2. 在“活动”下,选择“登录”。Under Activity, select Sign-ins.

  3. 按“Microsoft Power BI”或“Power BI 网关”筛选应用程序,然后选择“应用”或。Filter the application by either Microsoft Power BI or Power BI Gateway and select Apply.

    Microsoft Power BI 针对与服务相关的登录活动,而 Power BI 网关针对本地数据网关的登录。Microsoft Power BI is for sign-in activity related to the service whereas Power BI Gateway are specific sign-ins for the on-premises data gateway.

导出数据Export the data

可通过两个选项导出登录数据。You have two options to export the sign-in data. 即下载 csv 文件或使用 PowerShell。This can be done by either downloading a csv file or you can use PowerShell.

下载 csv 文件Download csv

在“活动”屏幕中,选择工具栏中的“下载”。Within the Activity screen, you can select Download in the toolbar. 此操作将下载当前筛选的数据的 csv 文件。This will download a csv file for the currently filtered data.

PowerShellPowerShell

可以使用 PowerShell 导出登录数据。You can use PowerShell to export the sign-in data. Azure AD 文档中提供了示例A sample is available within the Azure AD documentation.

备注

为使 PowerShell 示例正常工作,请务必遵循访问 Azure AD 报告 API 的先决条件For the PowerShell sample to work, be sure to follow the prerequisites to access the Azure AD reporting API.

数据保留期Data retention

登录相关数据最长可保留 30 天。Sign-in related data can be available for up to 30 days. 有关详细信息,请参阅 Azure Active Directory 报告保留策略For more information, see Azure Active Directory report retention policies.

后续步骤Next steps

Azure Active Directory 门户中的“登录活动”报告(新门户)Sign-in activity reports in the Azure Active Directory portal (New Portal)
查看访问和使用情况报告(经典门户)View your access and usage reports (Classic Portal)
登录示例 PowerShell 脚本Sign-in sample PowerShell script
Azure Active Directory 报告保留策略Azure Active Directory report retention policies
在组织内使用审核Using auditing within your organization
激活延长的 Power BI Pro 试用期Extended Pro Trial activation

更多问题?More questions? 尝试咨询 Power BI 社区Try asking the Power BI Community