Forum Discussion
innocence84
3 years agoHelper I
Generating Authorization: Bearer token for calling Power BI Rest API
Hi, When I called a Power BI Rest API via the try it page in the web site (https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-datasets-as-admin ), Microsoft is generating a ...
Anonymous
3 years agoNot applicable
Hi innocence84 ,
You can refer the following links to generate the token:
Permission tokens needed for embedding a Power BI app - Power BI | Microsoft Learn
Powershell method:
Note: Make sure you have installed the related modules: MicrosoftPowerBIMgmt.Profile before call the below command.
Get-PowerBIAccessToken (MicrosoftPowerBIMgmt.Profile) | Microsoft Learn
Get-PowerBIAccessToken
Postman method:
Solved: Power BI REST API using postman - generate embed t... - Microsoft Fabric Community
Access the Power BI Rest APIs using Postman - Helical IT Solutions Pvt Ltd (helicaltech.com)
Best Regards