Freaking amazing video man! Just an advice do the ones that are starting on python... I couldn't set the cred.py file, nor install the package, so i just created the variable with username and password. It's not the best practice to do, but it worked properly, so let the future me worry about secury stuff lol.
@MHFCLoveOfMyLife
2 ай бұрын
Hey, If i don't own pbi pro, and my co worker is creating the app our team use, can i use his app client id and secret with my user, in my code, in order to fetch data from the api? will i'll be able to create access token?
@JJPowerBI
2 ай бұрын
I am not sure. You can give it a try.
@ricardojosemunozanaya2347
4 ай бұрын
hello bro, i dont know what happened, "ValueError: Public Client should not possess credentials"
@JJPowerBI
4 ай бұрын
There is a typo somewhere in your code.
@MHFCLoveOfMyLife
2 ай бұрын
Hey :) Thanks for the detailed video!! When trying to register application I get this error: Error when registering application: ERROR: Request returned Forbidden and graph API request id: {id} Do you know what can be the problem? thanks!
@JJPowerBI
2 ай бұрын
This is has to do with permission issue that that you will need to reach out to your admin to grant you permission.
@MHFCLoveOfMyLife
2 ай бұрын
@@JJPowerBI thanks for the answer !
@jaroslavmarko8627
8 ай бұрын
Hi, thank you for perfect and detailed video. Maybe you can help me with one issue. I fail to authenticate using username and password (I get an "The access policy does not allow token issuance." - which should mean that I need to use MFA - company policy that cannot be avoided). When I use Confidential client then i can get a Access token, but it gets refused by the http call (401 error). Any idea how can I perform a MFA authentication and get a functional token, please? Thanks a lot for your answer.
@jcarneiro91
Жыл бұрын
Doesn't let me disable security defaults, a permission related message prompts
@JJPowerBI
Жыл бұрын
That means you probably don't have admin right
@tetzki9962
2 жыл бұрын
thanks this is helpful. is there a way get query a power bi dataset using this python script?
@amruthamu9967
Жыл бұрын
HI Sir, while running response = client.acquire_token_by_username_password(username=username, password=password, scopes= scopes) I am getting below error: 'WsTrust server returned error in RSTR: {'reason': 'Authentication failed', 'code': 'wst:FailedAuthentication'}' any idea how can we resolve this?
@JJPowerBI
Жыл бұрын
I would probably Google the error.
@MohamedAslamK-mh1wn
Жыл бұрын
Wonderful video its work to me, but at the same in my side *Disable Default Security* option not necessary to me just apply ** is enough to me and its work...!, once again thank you so much...
@MHFCLoveOfMyLife
2 ай бұрын
Hey, Can I use the api without pbi pro?
@JJPowerBI
2 ай бұрын
Unfortunately no. Power BI rest API is mostly used to manage power BI online functions.
@milpatel83
Жыл бұрын
For companies who use Power BI via an Office 365 licence, I assume the setting changes made in Azure would need to come via the IT department?
@gifbfbvhvhdhfhfjffjfnfhfb515
Жыл бұрын
Thank you so much the azure kept returning error 401 and what was missing was turning the azure active directory security off
@andresmoreno4726
Жыл бұрын
I am trying with MSAL ConfidentialClientApplication, I am getting the token correctly, but the last part is not working for me... Do I need to change the way I build my endpoint? Or How I know which is my endpoint? Hope you could solve my doubt c:
@mostafamoustaghni6980
5 ай бұрын
I have the same issue, did you solve it?
@vtrg16
11 ай бұрын
Hi!! Can you explain how get the access token with a service principal authentication??
@JorgeEscobarMX
8 ай бұрын
Thank you. Great content and now I see how to connect Python to a power bi dataset. I wonder if you can query a power bi dataset as if it is a database?
@JJPowerBI
8 ай бұрын
I have tried, unfortunately, that's not possible currently. Perhaps one day Microsoft will release such API.
@navinrangar2626
Жыл бұрын
Hi man, awesome this is. how can we refresh this access token automatically hereafter?
@morinho96
6 ай бұрын
Hello, when I check the reponse to the access token, I see that the scope returned in my access token is 00000002-0000-0000-c000-000000000000, and not the actual scopes defined in the app. Do you have any idea why ? Thanks a lot !!
@JJPowerBI
6 ай бұрын
Hard to tell. But most likely it when you set up the Azure app, one of the option is not set correctly.
@morinho96
5 ай бұрын
@@JJPowerBI Thank you for your response. The username and password you used are admin credentials ? I am trying to connect without using a user credentials...
@SubhadipDutta-p4z
Жыл бұрын
can I have the same implementation code with java
@TrashCan-e3d
8 ай бұрын
Is there any additional costs when running requests to API when using pro account?
@JJPowerBI
8 ай бұрын
Currently there is no cost using the API.
@ganeshghuge3405
Жыл бұрын
enable security defaults is by default in my case still getting error. please help. getting an error 'error': 'invalid_grant', 'error_description': "AADSTS65001: The user or administrator has not consented to use the application.
@AntrikshSharma
Жыл бұрын
At 5:45 see the option "Grant admin consent for ...." click on that and grant it.
@ganeshghuge3405
Жыл бұрын
@@AntrikshSharma Thanks much man. The domain name isn't verified that's why I was not getting an option to grant. I did it by visiting admin.microsoft.com and it's working now.
@HallofWisdom
Жыл бұрын
--- 7:57 without sharing your username or password, can you show us the 'cred' script? ---11JUN23
@JJPowerBI
Жыл бұрын
Basically just defining two variables. For example, username = 'xyz' password = 'abc'
@rushatpatil3200
7 ай бұрын
Is there any PowerBI rest API, to read data from a visual?
@JJPowerBI
7 ай бұрын
Can you be more specific?
@muralichiyan
2 жыл бұрын
Nice keep rocking … We need to buy azure embedded licenses for this ..?
@JJPowerBI
2 жыл бұрын
Nope.
@MiguelLP90
Жыл бұрын
Excelente video, Muchas gracias
@satishk1464
Жыл бұрын
i am getting 404 error while accessing the data
@JJPowerBI
Жыл бұрын
404 error is usually due to address is not found. Maybe sure your app is set up correctly.
@majidabbasi1552
2 жыл бұрын
thank you for an amazing and detailed video.
@newblog7540
Жыл бұрын
Hi, I'm on Step 1: Generating Access Token and get this error: ImportError: cannot import name 'username' from 'cred' (C:\Users\talha.farooq\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\cred\__init__.py) I have installed cred module Could you please let me know what am I missing?
@JJPowerBI
Жыл бұрын
Create a file called cred.py. Inside cred.py, create two variables "username" and "password".
@ananthkrishnabattepati
Жыл бұрын
@@JJPowerBI What are the values of this username and password? are they blank variables or should we send any credentials to it?
Пікірлер: 47