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 folks,
I want to confirm that we can call RefreshUserMenership API under service principal.
Users - Refresh User Permissions - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Will it work for users with MFA?
What permission service pricnipal should have to run that API? We are getting 401 when try to call that API using with service principal using user token.
Thank you, we do have that. Any specific permissions required for it to call the refresh group membership api?
To authenticate, the service principal uses the Microsoft Entra app's application ID and one of the following:
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi @EduardD
Technically you need to use a Power BI App registration in order to call the API :
To authenticate, the service principal uses the Microsoft Entra app's application ID and one of the following:
https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Thank you, but we already know all that, the question is for that specific API listed above.
Can service principle call that API on user behalf?
what specific Power BI permission should be assigned to the service principal? For example, should Service principal be a Power BI admin for calling that API?
No a user or UID can't use the API.
The service principal should have full access through Read.Write all in the APP registration.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
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 |
---|---|
59 | |
35 | |
27 | |
26 | |
24 |
User | Count |
---|---|
62 | |
53 | |
30 | |
23 | |
20 |