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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sjc4062
Frequent Visitor

Unable to Retrieve Dataset info from the API

Hello all!

I am attempting to get info on the datasets within a specific workspace using the API.

 

I am able to get the bearer token without any issues. It returns with the following permissions:

  

"scope": "Content.Create Dashboard.Read.All Dashboard.ReadWrite.All Data.Alter_Any Dataset.Read.All Dataset.ReadWrite.All Group.Read Group.Read.All Metadata.View_Any Report.Read.All Report.ReadWrite.All",

 

I am able to run: https://api.powerbi.com/v1.0/myorg/groups in order to get a list of the groups i am a member of.

But if i use the groupID of any of the results from that
https://api.powerbi.com/v1.0/myorg/groups/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/datasets

 

I get an error that i am not authorized.

According to the documentation provided by microsoft- https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasetsingroup

The only required items are:

Required scope: Dataset.ReadWrite.All or Dataset.Read.All

And my bearer token states i have that access.

 

 

Error

Status: 401 unauthorized

 

Has anyone seen this before?

 

 

 

 

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @sjc4062,

 

According to your description, it should be good. 

1. How did you do this? 

2. Was the token still valid?

3. What did the token look like? Can you share the format? For example,

Access token: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUz*******************

Embedded token: H4sIAAAAAAAEAB2Wta7FCpJF*****************

4. Can you try the other App workspaces? 

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @sjc4062,

 

According to your description, it should be good. 

1. How did you do this? 

2. Was the token still valid?

3. What did the token look like? Can you share the format? For example,

Access token: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUz*******************

Embedded token: H4sIAAAAAAAEAB2Wta7FCpJF*****************

4. Can you try the other App workspaces? 

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Looks like it was a licensing issue where i lost access to powerbi pro on my service account.

 Working as intended now.

Thanks for the help

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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