Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ekumar-0522
New Member

Issue with REST api for GET report data

Hi 

 

Im trying to get individual report data by using this rest api

https://api.powerbi.com/v1.0/myorg/reports/{report_id}

and even i tried with 

GET https://api.powerbi.com/v1.0/myorg/groups/{group_id}/reports/{report_id}

what is group id?

in the place of group id i mentioned the id which u can see in screenshot

group rest api.png

 

after mentioning this report id and group id in rest api im getting this which u san see in screenshot

report.png

 

may i know what is the issue 

can you help me out with this how can i resolve this issue?

 

Thanks

sai kumar

 

1 ACCEPTED SOLUTION

"

and the metadata as you can see "isReadOnly": false

is that the issue?

"

No, this is not the issue.

 

Please check the group membership, switch to Group Owner and then try it again.

The Header is OK, for the Body part within postman, input the following within Raw format:

{
  "accessLevel": "View",
  "allowSaveAs": "false"
}

6.PNG

 

Regards,

Michael

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @ekumar-0522,

 

Group is the name used in the REST API for the (App) Workspace in the PowerBI service.

 

How did you get the token used in the api call (Bearer ...)? It seems that it doesn't allowed to access the report.

 

Regards,

 

Thanos

Hi @Anonymous

 

The token which i have used that i got from this ret api

https://login.microsoftonline.com/<tenant id>/oauth2/token?grant_type=password

so, how can i get the data of individual report?

what headers and authorization should i need to pass for it?

can you help me with this issue.

 

Thanks

sai kumar 

Anonymous
Not applicable

Hi @Anonymous

Im trying to get the individual report data as you can see my group name is"Test Workspace"

and the metadata as you can see "isReadOnly": false

is that the issue?

 

when I mentioned same group id and report id which I want to fetch 

but the thing is I'm getting an 401 unauthorized error as you can see the screenshot above

can you help me with this

 

Thanks

sai kumar

"

and the metadata as you can see "isReadOnly": false

is that the issue?

"

No, this is not the issue.

 

Please check the group membership, switch to Group Owner and then try it again.

The Header is OK, for the Body part within postman, input the following within Raw format:

{
  "accessLevel": "View",
  "allowSaveAs": "false"
}

6.PNG

 

Regards,

Michael

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.