Forum Discussion
Lauger
3 years agoRegular Visitor
Custom USERPRINCIPALNAME() when consumming API through Service Principal
Hi, I have to embed some Power BI reports in several applications. I use an Azure Service Principal (client id, client secret) to generate an access token and call the Power BI API. All is workin...
- 3 years ago
It took me a long time before being able to figure out the best solution.
Using service principal was not the best approach in order to take the user's rights in account.
So I had to focus on the other way (more complicated for novice as I am) to embed reports, based on user's scope delegation located in the Azure application.
Gengar
Resolver I
3 years agoHi Lauger ,
This is how it is described in the official documentation.
https://learn.microsoft.com/en-us/dax/username-function-dax
I'm not particularly sure about how it works exactly.
I sincerely hope these can help you!
Gengar