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.
Hi,
I've read all the previouse posts regarding this topic, but it seems I'm still kinda stuck.
As of now I've registered my App within app registrations in AAD. I've also added a security group and added my app (service principal) as a user and a owner of the security group.
I've added a client secret to the app registration and I'm able to query:
However when I then re-use the accesstoken generated in the response. I get 401:
These are the premissions I've granted the application in Azure:
Any help will be greatly appreciated!
Hi @Abrandhaug ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
Hi @Abrandhaug ,
According to the error message, it seems that service principal didn't have the proper permission. Did you add that service principal as the member/admin of the corresponding workspace just as describe in this official documentation?
In addition, please check the following threads which have the similar problem as yours. Hope that the solution can also help you solve the problem.
Power Bi REST API - 401 Authorization error when using Service Principals
Add the Service Principal as an admin in the workspace directly rather than add the security group.
Acquired token gives 401 Unauthorized when trying to create DataSet
App registration (service principal) needs to be a member of a Security group
Best Regards
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 |
---|---|
10 | |
8 | |
3 | |
3 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |