Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I get 403 forbidden whenever I try to get DatasetInfo using
var dataset = pbiClient.Datasets.GetDatasetByIdAsync(report.DatasetId);
but when I include the GroupId in returns data successffuly
var datasetx = await pbiClient.Datasets.GetDatasetByIdInGroupAsync("xxxx-xxxx", report.DatasetId)
Solved! Go to Solution.
@Anonymous There's a slight difference between the two methods:
So if report.DatasetId does not exist in My Workspace you get that error.
Did this help you or did I answer your question?
Then please give kudos or mark my post as a solution!
My blog: nickyvv.com
Twitter: @NickyvV
@Anonymous There's a slight difference between the two methods:
So if report.DatasetId does not exist in My Workspace you get that error.
Did this help you or did I answer your question?
Then please give kudos or mark my post as a solution!
My blog: nickyvv.com
Twitter: @NickyvV
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 9 | |
| 7 |
| User | Count |
|---|---|
| 47 | |
| 40 | |
| 39 | |
| 25 | |
| 25 |