Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Power Bi API: How to get all the users from a report's direct access list

I would like to get all the users from a report's "Direct Access" list with Power Bi API. I tried to use GET https://api.powerbi.com/v1.0/myorg/admin/datasets/{datasetId}/users (documentation), but the response is just a Response Code: 401. I checked on JWT.io and I have all the Required Scopes: Tenant.Read.All or Tenant.ReadWrite.All.

Where is the problem here?

Thanks!

1 Reply