Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, I used to obtain the Access Token from the "Try-it" feature at https://docs.microsoft.com/en-us/rest/api/power-bi/admin
But now it is unavailable, so I used Postman, with the below parameters and settings. I suspect there is some problem with the parameters used or settings as Scopes is not returned, although the Access Code is returned.
An access token is generated and I copy & paste into the below REST API, I've got an unauthorized error.
Is there anything which I've missed out? Any parameters or settings wrongly configured? Thk u very much!
If you in Postman go to the authorization tab and there you can choose bearer token. Paste the token only (NOT bearer in front) it should work.
BR
Marius
Hi Mariussve1, thks! I've pasted the Access Token under the Authorization tab in Postman but I still get the error "Unauthorized". Pls help
Are you using Service Principal (Tenant-, -App and Secret ID) ?
If yes, then you need to put this service principal in a security group in AAD (Azure AD). Then you have to permit this security group to the workspace you are running the REST API against.
If you want to use the admin API's you have to grant accesst to this in the tenant settings:
Br
Marius
Thks Marisussve1! I've found another work around to acheive what I want to do. It is the custom connector Power BI API by Miguel Escobar
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
4 | |
4 | |
4 | |
3 |