[英]How to retrieve a list of all users from a Power BI app using the Power BI Rest API?
I'm looking for a way to gain insight who has access to what information product in the Power BI Service. 我正在寻找一种了解谁有权访问Power BI服务中哪些信息产品的方法。 How do I retrieve a list of users per Power BI App using the Power BI REST API? 如何使用Power BI REST API检索每个Power BI App的用户列表?
I've tried the Get Apps endpoint, which returns a list of all installed apps in our domain. 我尝试了Get Apps端点,该端点返回我们域中所有已安装应用的列表。
Login-PowerBI
$apps = Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/apps" -Method Get
$apps
And returns a list, for example: 并返回一个列表,例如:
{
"value": [
{
"id": "f089354e-8366-4e18-aea3-4cb4a3a50b48",
"description": "The finance app",
"name": "Finance",
"publishedBy": "Bill",
"lastUpdate": "2019-01-13T07:46:53.094+00:00"
},
{
"id": "3d9b93c6-7b6d-4801-a491-1738910904fd",
"description": "The marketing app",
"name": "Marketing",
"publishedBy": "Ben",
"lastUpdate": "2018-11-13T07:46:53.094+00:00"
}
]
}
However, the list of users is not included here. 但是,此处不包括用户列表。 Is it possible to retrieve a list of users some other way? 是否可以通过其他方式检索用户列表?
As far as I know, there is no way to get this using the API. 据我所知,没有办法使用API来获得它。 Plus, it doesn't make much sense to support such lists, considering apps available for the entire organization. 另外,考虑到整个组织可用的应用程序,支持这样的列表没有多大意义。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.