Forum Discussion

bmidhun's avatar
bmidhun
Frequent Visitor
1 year ago
Solved

Listing all items under "My workspace" using Fabric REST API

Kindly can some help me in listing out all the items (Report's, Dataset, or Semantic Model) under "My Workspace" (Default). 

 

Specifically we want to list out all the items under the logged in user "My Workspace"

 

We tried using below api's but it is not working.

 

https://api.fabric.microsoft.com/v1/workspaces

 

Kindly can someone suggest the same.

  • Hi bmidhun ,

     

    The user is trying to list all items (Reports, Datasets, Semantic Models) under their "My Workspace" using the Fabric REST API but found that the endpoint https://api.fabric.microsoft.com/v1/workspaces does not return the expected results. This is likely because "My Workspace" is treated differently and may not be accessible via the standard workspace listing API.

    To resolve this, the user should:

    • Use the Power BI REST API instead, particularly the GetReportsInGroup or GetDatasetsInGroup endpoints with the group ID for "My Workspace" (which is typically the user's own ID or me).
    • Alternatively, use the Graph API or Fabric-specific endpoints if available for personal workspace access.
    • Ensure proper authentication scopes are granted (e.g., Dataset.Read.All, Report.Read.All).

1 Reply

  • Hi bmidhun ,

     

    The user is trying to list all items (Reports, Datasets, Semantic Models) under their "My Workspace" using the Fabric REST API but found that the endpoint https://api.fabric.microsoft.com/v1/workspaces does not return the expected results. This is likely because "My Workspace" is treated differently and may not be accessible via the standard workspace listing API.

    To resolve this, the user should:

    • Use the Power BI REST API instead, particularly the GetReportsInGroup or GetDatasetsInGroup endpoints with the group ID for "My Workspace" (which is typically the user's own ID or me).
    • Alternatively, use the Graph API or Fabric-specific endpoints if available for personal workspace access.
    • Ensure proper authentication scopes are granted (e.g., Dataset.Read.All, Report.Read.All).