Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
abhishek-kumar
New Member

How to update the Parameter in Power BI Dataset using PowerBI Rest API?

Hi

I have Published the Power BI Reports with Parameters, and I'm trying to update the Parameter by the PowerBI Rest API with required scope. I am using Azure AD App with "Dataset.ReadWrite.All" Permission for generating access token. If i used the token in that API, it is showing me 403 forbidden error. I have allowed all the access for that App. I enabled all the required fields in the Workspace access.
Can you please guide me how to use that API and how to generate the Token for the API?

6 REPLIES 6
aj1973
Community Champion
Community Champion

Hi @abhishek-kumar 

The user of the API must be the owner of the Dataset

aj1973_0-1702989560961.png

App Registration can't Take Over the ownership of the dataset in the service.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

HI @aj1973 

I have generated the access token with the "Dataset.ReadWrite.All" as delegated permission and the owner of the Dataset is the signed in user. But still it is giving me 403 forbidden error.

You said 

aj1973_0-1703596171501.png

Did you mean the Power BI App Registration? if so then you Azure AD App can't be an owner of the dataset.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

For now Im using Azure AD App not the Power BI App Registration. I have the Dataset.ReadWrite.All as Delegated Permisison in Azure AD App. Im Generating Access token in Site Page as the Signed in user (That user is the Owner of the Dataset.)

1. Should I use Power BI App Registration?
2. Is it possible to assign the azure ad app as the Owner of the Dataset?

No Neither one can be the owner of the dataset.

It is better that you create a service account for your required scope. May I know what is the scope please?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Dataset.ReadWrite.All is the Required Scope to update the Parameter in Power BI Dataset
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.