Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello All,
I have searched online but have not found anything substantial.
Use case: I want to use PowerShell and the Invoke-PowerBIRestMethod to get artifactAccess for an ObjectID (GraphID) Where ArtifactType is a DataSet, but I also only want to see the ArtifactAccess if the ObjectID (GraphID) has accessright of "Owner".
Is this possible?
Below is what I am currently running in Powershell:
Invoke-PowerBIRestMethod -URL 'admin/users/ObjectID/artifactAccess?artifactTypes=Dataset' -Method GET
Hi. I would like to start saying that the request doesn't follow a request a the docs. You can check the requests for invoke powerbi rest method in here: https://learn.microsoft.com/en-us/rest/api/power-bi/
I think you might be looking for this one: "Granting access to a user for a dataset": https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/post-dataset-user
The URL might be "myorg/datasets/{dataset_id}/users"
I hope that helps,
P/D Be aware to read the required scope and the limitations
Happy to help!
Hello @ibarrau
The request works fine in PowerShell and I can get back Artifacts with the GraphID. My question is more around the Acutal Get Method as described.
Oh, I see. What do you mean with Artifact access.
I'm reading the request and it will only let you get a response for the access of specific users.
https://learn.microsoft.com/en-us/rest/api/power-bi/admin/users-get-user-artifact-access-as-admin
If you want to know more about the datasets of the specific users, you might want to check the datasets requests in order to run a request for the reponse of each datasets of the user.
I hope that make sense
Happy to help!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
19 | |
16 | |
15 | |
12 | |
11 |
User | Count |
---|---|
33 | |
26 | |
25 | |
19 | |
19 |