Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hii Thanks in advance .I need the script to know what are the power bi dashboard using by user .
Check these and see if it gives you a head start
Hi. I'm not good with PowerShell, but I can tell you how to achieve this. You can do this with any language programing tool and the Power Bi REST API. Using admin priviledges, you can check all the artifacts a user has access to. Request: https://learn.microsoft.com/en-us/rest/api/power-bi/admin/users-get-user-artifact-access-as-admin
I hope that helps,
Happy to help!
Thanks for you reply .Actually i tried this "Admin - Users GetUserArtifactAccessAsAdmin".But it's showing me irrelevant output.Like if i enter x in the UserId field , i should get the list of dashboards where the user have direct access .But with this one , it's showing other dashbaord .Like if the user x has direct access to only A1 dashboard but it's showing B1,c1 and A1.Can you please help me out .
The request will show absolute everything the user can access. So I'm sure it's there. It can be a long request if it's an important user. The tricky part would be filtering the content by dashboards or things like that. You can take adventage of libraries of rest api in order to make it easier, like SimplePBI when using python will solve the pagination and can return a pandas dataframe to easy filter or view the data.
Like I said before I can't help with powershell. I can just say that's the request. It requires pagination (continuationToken for more results to get them all).
I hope that make sense
Happy to help!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.