Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have several customers and all of them don´t want to pay one extra user only to get the latest .pbix build from my company, all of them already have one global admin that is used only for me to send the pbix. files using the REST API.
My problem is: When I use this link i receive the 401 error.
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets
When I use the admin role, I receive the 200 message and all the content.
GET https://api.powerbi.com/v1.0/myorg/admin/groups/{groupId}/datasets
If I use the REST API (https://docs.microsoft.com/en-us/rest/api/) it works, BUT when I change the url using the '/admin/' inside my application it doesn´t work, it is strange. Can anyone help me?
My reason response is "Unauthorized" BUT I´m sure my user is an admin global in O365.
Best Regards,
Bruno Zanoelo
Solved! Go to Solution.
Hi @brunozanoelo ,
Got the exact solution for you problems about the roles. First you need to understand the roles
Please refer here
As per that you need some granular level access calld PowerBI Service Administrator instead of O365 Global Admin Access. So that you can call the PowerBI Admin API's.
Also note that O365 Global Admin Access is having much more admin access which also compresses of PowerBI Admin. So to manage the PowerBI services alone. I'd recommend assign your account with PowerBI Service Admin instead of Office Global Admin
Hi @brunozanoelo ,
sorry I couldn't able to understand the question.
Are you saying using the REST API giving 401 error with the global admin access ?
Exactly, but my admin don´t have one PowerBI pro account. Eventought this shouldn't be happening, right?
Hi @brunozanoelo ,
Got the exact solution for you problems about the roles. First you need to understand the roles
Please refer here
As per that you need some granular level access calld PowerBI Service Administrator instead of O365 Global Admin Access. So that you can call the PowerBI Admin API's.
Also note that O365 Global Admin Access is having much more admin access which also compresses of PowerBI Admin. So to manage the PowerBI services alone. I'd recommend assign your account with PowerBI Service Admin instead of Office Global Admin
Thank you @Jayendran 😉
I will try to do that this week and I will post here the result.
Best Regards,
Hi @brunozanoelo ,
I think your admin role still needs to have a PowerBI Pro license. Since you are assessing PowerBI API, PowerBI Autentication is based on the Pro License assignment.
If you having a global admin role which comes under only Microsoft Office 365 License and not PowerBI License
So check by assigning the Pro license to your global admin account.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |