Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I've created an app to get an embed token and that's working fine. But when I try to trigger a refresh for the specified dataset (Required scope: Dataset.ReadWrite.All), I get a `401 Unauthorized` response. I'm using the Rest API with a password grant.
These are the values of my access token:
array:6 [
"token_type" => "Bearer"
"scope" => "Capacity.Read.All Dashboard.Read.All Dataset.Read.All Group.Read Report.Read.All Workspace.Read.All"
"ext_expires_in" => "3600"
"expires_on" => "1573226297"
"not_before" => "1573222397"
"resource" => "https://analysis.windows.net/powerbi/api"
]
How can I get `Dataset.ReadWrite.All` in my scope? In the Azure Portal I've added all permissions to my app, but it still gives me read access. When I use the 'demo client' in the documentation (https://docs.microsoft.com/nl-nl/rest/api/power-bi/datasets/refreshdataset#code-try-0) it works, but in my CLI app it doesn't.
Hi @stephanvierkant ,
Could you please try giving the Admin consent to your application which you reg in AD
Then try to generate the token check whether you scope is updated correctly
User | Count |
---|---|
15 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
18 | |
11 | |
5 | |
4 | |
3 |