Hi All,
Please help me with a easier way of exporting list of users who have read, owner, contributor access to the Power BI report in service?
I am trying with below solution
https://community.powerbi.com/t5/Report-Server/Exporting-list-of-those-with-access-to-the-Report/m-p...
But it is not giving me the entire list, after zooming in as well.
Thanks in advance
Regards,
Radhika
HI @radhika_123
These links will be helpful for you:
https://github.com/microsoft/powerbi-powershell
https://powerbi.microsoft.com/en-us/blog/working-with-powershell-in-power-bi/
Hi
I would not use that approach it's very manual and error-prone. (Microsoft will not make any guarantees on the structure of the page).
The correct approach is the use the Power BI API's that Microsoft has created exactly for this purpose.
The API you are looking for is Admin - Groups GetGroupUsersAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Docs
If you are unfamiliar with using API's then PowerShell is the easiest way to get started. you can follow this tutorial Power BI Cmdlets reference | Microsoft Docs
There is no cmdlet to call the function you need directly but you can use the Invoke-PowerBIRestMethod to call the API.
This will give list of users who have access to the workspace, I want the list of users who have access to a report in the workspace
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!