Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi all,
I need all with a Rest Api Post call I am trying to make to bind one dataset to a specific connector. I don't know what I am doing wrong but it does not work.
I have add the service principal as user to the gateway and to the connector and it ass all the permission needed as per Microsoft documentation ( DatasetReadWriteall etc).
I will paste the python code I am using:
Thanks for the reply from lbendlin , please allow me to provide another insight:
Hi @Uspace87 ,
According to the error message description: you can try to check admin portal -- search service principal settings -- is AAD account open for this user?
Refer to:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
thanks for you reply.
That option is Enabled. We heavly usi Rest Api in our company. I am not sure if the proble is related to the pyhton code or how I pass the Payload with the information for the gateawy and datasource to bind the dataset to. The call is working on the power bi website with my credentials.
What is the error message? Examine your token with jwt.io to make sure it has the required scope.
hi @lbendlin thanks for the reply. I get 403 error. The token get returned but I get an error. the service principall has all the required permissions in azure.
Can you try the same in Powershell?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |