Forum Discussion
Access to the resource is forbidden error while accessing Power Bi Datasets using API
Hi,
I am creating user Activity panel and want to use following API to get worklspaces, datasets, dataflows etc --
https://api.powerbi.com/v1.0/myorg/admin/groups?$top=20
https://api.powerbi.com/v1.0/myorg/admin/datasets
I am getting below error-
When i try to edit the data source setting and want to try login using organizational account it shows -
I am having Power BI admin controls but not able to understand why it is happening. Please help me.
Source for the API is microsoft
Hi,
Please follow this link for step by step process of Application Registration in Azure and for all the required admin permissions -
https://www.sqlshack.com/how-to-access-power-bi-rest-apis-programmatically/
13 Replies
- AnkitKukrejaSuper User
- Amar-AgnihotriResolver I
Hi AnkitKukreja ,
Thanks for the reply. I tried basic authentication
got the same error again
Niow i tried advanced authentication
and passed the authorization token as given in microsoft
got this error
Now what to do ?
- SabarikarthyFrequent Visitor
Hi,
Was this resolved. I am in the same place now.
- AnkitKukrejaSuper User
Please remove the word bearer from the Authorization and it should work.
- Amar-AgnihotriResolver I
Tried this also
Getting the same error
- AnkitKukrejaSuper User
Hi!
Then I think you should raise a ticket to MS support.
- Amar-AgnihotriResolver I
Hi,
Please follow this link for step by step process of Application Registration in Azure and for all the required admin permissions -
https://www.sqlshack.com/how-to-access-power-bi-rest-apis-programmatically/
- avillarroelk250Frequent Visitor
Greetings, Do you resolve the problem?
I am stuck with the same problem."
- Amar-AgnihotriResolver I
avillarroelk250
Please follow thge steps in this link
https://www.sqlshack.com/how-to-access-power-bi-rest-apis-programmatically/
It was resolved for me
- Syndicate_AdminAdministrator
is this problem resolved? I am stuck with the same problem and not able to fetch the data from toggl through API. Can anyone help please?