cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
stephanvierkant Frequent Visitor
Frequent Visitor

How to get ReadWrite permission?

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. 

1 REPLY 1
Jayendran Established Member
Established Member

Re: How to get ReadWrite permission?

Hi @stephanvierkant ,

 

Could you please try giving the Admin consent to your application which you reg in AD

grantpermission

 

Then try to generate the token check whether you scope is updated correctly

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 198 members 2,356 guests
Please welcome our newest community members: